title: Maximize Volume Cuboid Given Sum Sides 1
signature: fun maximizeVolumeCuboidGivenSumSides1(s: Int): Int {
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;
  }
question_info.test_list: [{"idx": 0, "outputs": 18, "inputs": {"s": 8}}, {"idx": 1, "outputs": 32768, "inputs": {"s": 96}}, {"idx": 2, "outputs": 32768, "inputs": {"s": 96}}, {"idx": 3, "outputs": 32768, "inputs": {"s": 96}}, {"idx": 4, "outputs": 64, "inputs": {"s": 12}}, {"idx": 5, "outputs": 31744, "inputs": {"s": 95}}, {"idx": 6, "outputs": 13824, "inputs": {"s": 72}}, {"idx": 7, "outputs": 19683, "inputs": {"s": 81}}, {"idx": 8, "outputs": 2744, "inputs": {"s": 42}}, {"idx": 9, "outputs": 81, "inputs": {"s": 13}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(s: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(s), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(8, 18)
      println("TEST-0...${result}")
      
      result = driver(96, 32768)
      println("TEST-1...${result}")
      
      result = driver(96, 32768)
      println("TEST-2...${result}")
      
      result = driver(96, 32768)
      println("TEST-3...${result}")
      
      result = driver(12, 64)
      println("TEST-4...${result}")
      
      result = driver(95, 31744)
      println("TEST-5...${result}")
      
      result = driver(72, 13824)
      println("TEST-6...${result}")
      
      result = driver(81, 19683)
      println("TEST-7...${result}")
      
      result = driver(42, 2744)
      println("TEST-8...${result}")
      
      result = driver(13, 81)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: maximizeVolumeCuboidGivenSumSides1
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn