title: Maximize Volume Cuboid Given Sum Sides 1
signature: maximizeVolumeCuboidGivenSumSides1(s) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(s, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(s), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          8, 
          18)
      }");
  
      print("TEST-1...${driver(
          96, 
          32768)
      }");
  
      print("TEST-2...${driver(
          96, 
          32768)
      }");
  
      print("TEST-3...${driver(
          96, 
          32768)
      }");
  
      print("TEST-4...${driver(
          12, 
          64)
      }");
  
      print("TEST-5...${driver(
          95, 
          31744)
      }");
  
      print("TEST-6...${driver(
          72, 
          13824)
      }");
  
      print("TEST-7...${driver(
          81, 
          19683)
      }");
  
      print("TEST-8...${driver(
          42, 
          2744)
      }");
  
      print("TEST-9...${driver(
          13, 
          81)
      }");
  
      return 0;
  }
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;
  }