title: Maximize Volume Cuboid Given Sum Sides 1
signature: maximizeVolumeCuboidGivenSumSides1 :: Integer -> Integer
  maximizeVolumeCuboidGivenSumSides1 s = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Integer -> Integer -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: Integer -> Integer -> String
  driver s expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME s) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver (8) (18) )
  
      printf "TEST-1...%s\n" (driver (96) (32768) )
  
      printf "TEST-2...%s\n" (driver (96) (32768) )
  
      printf "TEST-3...%s\n" (driver (96) (32768) )
  
      printf "TEST-4...%s\n" (driver (12) (64) )
  
      printf "TEST-5...%s\n" (driver (95) (31744) )
  
      printf "TEST-6...%s\n" (driver (72) (13824) )
  
      printf "TEST-7...%s\n" (driver (81) (19683) )
  
      printf "TEST-8...%s\n" (driver (42) (2744) )
  
      printf "TEST-9...%s\n" (driver (13) (81) )
  
source_py: def maximize_volume_cuboid_given_sum_sides_1(s):
      length = int((s / 3))
      s -= length
      breadth = (s / 2)
      height = (s - breadth)
      return int(((length * breadth) * height))
source_cpp: int maximize_volume_cuboid_given_sum_sides_1(int s) {
    int length = s / 3;
    s -= length;
    int breadth = s / 2;
    int height = s - breadth;
    return length * breadth * height;
  }