title: Maximize Volume Cuboid Given Sum Sides 1
signature: maximize_volume_cuboid_given_sum_sides_1 <- function(s) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(s, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(s), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          8L, 
          18L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          96L, 
          32768L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          96L, 
          32768L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          96L, 
          32768L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          12L, 
          64L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          95L, 
          31744L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          72L, 
          13824L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          81L, 
          19683L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          42L, 
          2744L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          13L, 
          81L
      )))
  
  }
  
  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;
  }