title: Calculate Area Tetrahedron
signature: fun calculateAreaTetrahedron(side: Int): Float {
source_py: def calculate_area_tetrahedron(side):
      volume = ((side ** 3) / (6 * math.sqrt(2)))
      return round(volume, 2)
source_cpp: double calculate_area_tetrahedron(int side) {
    double volume = ( pow ( side, 3 ) / ( 6 * sqrt ( 2 ) ) );
    return volume;
  }
question_info.test_list: [{"idx": 0, "outputs": 22994.17, "inputs": {"side": 58}}, {"idx": 1, "outputs": 20696.54, "inputs": {"side": 56}}, {"idx": 2, "outputs": 5052.87, "inputs": {"side": 35}}, {"idx": 3, "outputs": 114350.83, "inputs": {"side": 99}}, {"idx": 4, "outputs": 258.92, "inputs": {"side": 13}}, {"idx": 5, "outputs": 10739.18, "inputs": {"side": 45}}, {"idx": 6, "outputs": 7542.47, "inputs": {"side": 40}}, {"idx": 7, "outputs": 91769.26, "inputs": {"side": 92}}, {"idx": 8, "outputs": 40.42, "inputs": {"side": 7}}, {"idx": 9, "outputs": 258.92, "inputs": {"side": 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:Float, expected:Float):Boolean{
    return abs(actual - expected) < 1e-06f
  }
  fun driver(side: Int, expected:Float):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(side), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(58, 22994.17f)
      println("TEST-0...${result}")
      
      result = driver(56, 20696.54f)
      println("TEST-1...${result}")
      
      result = driver(35, 5052.87f)
      println("TEST-2...${result}")
      
      result = driver(99, 114350.83f)
      println("TEST-3...${result}")
      
      result = driver(13, 258.92f)
      println("TEST-4...${result}")
      
      result = driver(45, 10739.18f)
      println("TEST-5...${result}")
      
      result = driver(40, 7542.47f)
      println("TEST-6...${result}")
      
      result = driver(92, 91769.26f)
      println("TEST-7...${result}")
      
      result = driver(7, 40.42f)
      println("TEST-8...${result}")
      
      result = driver(13, 258.92f)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: calculateAreaTetrahedron
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