title: Maximize Volume Cuboid Given Sum Sides 1
signature: pub fn maximize_volume_cuboid_given_sum_sides_1(s: i32) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(s: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(s), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        8, 
        18
      ));
      
      println!("TEST-1...{}", driver(
        96, 
        32768
      ));
      
      println!("TEST-2...{}", driver(
        96, 
        32768
      ));
      
      println!("TEST-3...{}", driver(
        96, 
        32768
      ));
      
      println!("TEST-4...{}", driver(
        12, 
        64
      ));
      
      println!("TEST-5...{}", driver(
        95, 
        31744
      ));
      
      println!("TEST-6...{}", driver(
        72, 
        13824
      ));
      
      println!("TEST-7...{}", driver(
        81, 
        19683
      ));
      
      println!("TEST-8...{}", driver(
        42, 
        2744
      ));
      
      println!("TEST-9...{}", driver(
        13, 
        81
      ));
      
  }
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;
  }