title: Sum K Th Group Odd Positive Numbers 1
signature: func sumKThGroupOddPositiveNumbers1(k int) int {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int, expected int) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(k int, expected int) string {
      if validateSolution(PLACEHOLDER_FN_NAME(k),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(57, 185193)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(96, 884736)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(14, 2744)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(64, 262144)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(24, 13824)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(74, 405224)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(85, 614125)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(27, 19683)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(78, 474552)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(1, 1)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
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;
  }