title: Sum K Th Group Odd Positive Numbers 1
signature: fun sumKThGroupOddPositiveNumbers1(k: Int): Int {
source_py: def sum_k_th_group_odd_positive_numbers_1(k):
      return ((k * k) * k)
source_cpp: int sum_k_th_group_odd_positive_numbers_1(int k) {
    return k * k * k;
  }
question_info.test_list: [{"idx": 0, "outputs": 185193, "inputs": {"k": 57}}, {"idx": 1, "outputs": 884736, "inputs": {"k": 96}}, {"idx": 2, "outputs": 2744, "inputs": {"k": 14}}, {"idx": 3, "outputs": 262144, "inputs": {"k": 64}}, {"idx": 4, "outputs": 13824, "inputs": {"k": 24}}, {"idx": 5, "outputs": 405224, "inputs": {"k": 74}}, {"idx": 6, "outputs": 614125, "inputs": {"k": 85}}, {"idx": 7, "outputs": 19683, "inputs": {"k": 27}}, {"idx": 8, "outputs": 474552, "inputs": {"k": 78}}, {"idx": 9, "outputs": 1, "inputs": {"k": 1}}]
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(k: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(k), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(57, 185193)
      println("TEST-0...${result}")
      
      result = driver(96, 884736)
      println("TEST-1...${result}")
      
      result = driver(14, 2744)
      println("TEST-2...${result}")
      
      result = driver(64, 262144)
      println("TEST-3...${result}")
      
      result = driver(24, 13824)
      println("TEST-4...${result}")
      
      result = driver(74, 405224)
      println("TEST-5...${result}")
      
      result = driver(85, 614125)
      println("TEST-6...${result}")
      
      result = driver(27, 19683)
      println("TEST-7...${result}")
      
      result = driver(78, 474552)
      println("TEST-8...${result}")
      
      result = driver(1, 1)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: sumKThGroupOddPositiveNumbers1
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