title: Pizza Cut Problem Circle Division Lines
signature: fun pizzaCutProblemCircleDivisionLines(n: Int): Int {
source_py: def pizza_cut_problem_circle_division_lines(n):
      return int((1 + ((n * (n + 1)) / 2)))
source_cpp: int pizza_cut_problem_circle_division_lines(int n) {
    return 1 + n * ( n + 1 ) / 2;
  }
question_info.test_list: [{"idx": 0, "outputs": 1082, "inputs": {"n": 46}}, {"idx": 1, "outputs": 2347, "inputs": {"n": 68}}, {"idx": 2, "outputs": 11, "inputs": {"n": 4}}, {"idx": 3, "outputs": 79, "inputs": {"n": 12}}, {"idx": 4, "outputs": 1597, "inputs": {"n": 56}}, {"idx": 5, "outputs": 106, "inputs": {"n": 14}}, {"idx": 6, "outputs": 3322, "inputs": {"n": 81}}, {"idx": 7, "outputs": 436, "inputs": {"n": 29}}, {"idx": 8, "outputs": 352, "inputs": {"n": 26}}, {"idx": 9, "outputs": 821, "inputs": {"n": 40}}]
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(n: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(46, 1082)
      println("TEST-0...${result}")
      
      result = driver(68, 2347)
      println("TEST-1...${result}")
      
      result = driver(4, 11)
      println("TEST-2...${result}")
      
      result = driver(12, 79)
      println("TEST-3...${result}")
      
      result = driver(56, 1597)
      println("TEST-4...${result}")
      
      result = driver(14, 106)
      println("TEST-5...${result}")
      
      result = driver(81, 3322)
      println("TEST-6...${result}")
      
      result = driver(29, 436)
      println("TEST-7...${result}")
      
      result = driver(26, 352)
      println("TEST-8...${result}")
      
      result = driver(40, 821)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: pizzaCutProblemCircleDivisionLines
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