title: Area Of The Circle That Has A Square And A Circle Inscribed In It
signature: fun areaOfTheCircleThatHasASquareAndACircleInscribedInIt(a: Int): Double {
source_py: def area_of_the_circle_that_has_a_square_and_a_circle_inscribed_in_it(a):
      area = (((math.pi * a) * a) / 4)
      return area
source_cpp: float area_of_the_circle_that_has_a_square_and_a_circle_inscribed_in_it(int a) {
    float area = ( M_PI * a * a ) / 4.0;
    return area;
  }
question_info.test_list: [{"idx": 0, "outputs": 4656.625710783471, "inputs": {"a": 77}}, {"idx": 1, "outputs": 254.46900494077323, "inputs": {"a": 18}}, {"idx": 2, "outputs": 5410.607947645021, "inputs": {"a": 83}}, {"idx": 3, "outputs": 1194.5906065275187, "inputs": {"a": 39}}, {"idx": 4, "outputs": 3631.6811075498013, "inputs": {"a": 68}}, {"idx": 5, "outputs": 615.7521601035994, "inputs": {"a": 28}}, {"idx": 6, "outputs": 3959.192141686537, "inputs": {"a": 71}}, {"idx": 7, "outputs": 153.93804002589985, "inputs": {"a": 14}}, {"idx": 8, "outputs": 346.36059005827474, "inputs": {"a": 21}}, {"idx": 9, "outputs": 4185.386812745001, "inputs": {"a": 73}}]
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:Double, expected:Double):Boolean{
    return abs(actual - expected) < 1e-09
  }
  fun driver(a: Int, expected:Double):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(a), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(77, 4656.625710783471)
      println("TEST-0...${result}")
      
      result = driver(18, 254.46900494077323)
      println("TEST-1...${result}")
      
      result = driver(83, 5410.607947645021)
      println("TEST-2...${result}")
      
      result = driver(39, 1194.5906065275187)
      println("TEST-3...${result}")
      
      result = driver(68, 3631.6811075498013)
      println("TEST-4...${result}")
      
      result = driver(28, 615.7521601035994)
      println("TEST-5...${result}")
      
      result = driver(71, 3959.192141686537)
      println("TEST-6...${result}")
      
      result = driver(14, 153.93804002589985)
      println("TEST-7...${result}")
      
      result = driver(21, 346.36059005827474)
      println("TEST-8...${result}")
      
      result = driver(73, 4185.386812745001)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: areaOfTheCircleThatHasASquareAndACircleInscribedInIt
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