title: Maximize Volume Cuboid Given Sum Sides 1
signature: function maximizeVolumeCuboidGivenSumSides1($s) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($s, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($s), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      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));
      
  }
  
  main();
  ?>
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;
  }