title: Maximize Volume Cuboid Given Sum Sides 1
signature: function maximize_volume_cuboid_given_sum_sides_1(s)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(s, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(s), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(8, 18);
      @printf("TEST-0...%s\n",result);
      
      result = driver(96, 32768);
      @printf("TEST-1...%s\n",result);
      
      result = driver(96, 32768);
      @printf("TEST-2...%s\n",result);
      
      result = driver(96, 32768);
      @printf("TEST-3...%s\n",result);
      
      result = driver(12, 64);
      @printf("TEST-4...%s\n",result);
      
      result = driver(95, 31744);
      @printf("TEST-5...%s\n",result);
      
      result = driver(72, 13824);
      @printf("TEST-6...%s\n",result);
      
      result = driver(81, 19683);
      @printf("TEST-7...%s\n",result);
      
      result = driver(42, 2744);
      @printf("TEST-8...%s\n",result);
      
      result = driver(13, 81);
      @printf("TEST-9...%s\n",result);
      
  end
  
  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;
  }