title: Count Number Ways Reach Given Score Game
signature: fun countNumberWaysReachGivenScoreGame(n: Int): Int {
source_py: def count_number_ways_reach_given_score_game(n):
      table = [0 for i in range((n + 1))]
      table[0] = 1
      for i in range(3, (n + 1)):
          table[i] += table[(i - 3)]
      for i in range(5, (n + 1)):
          table[i] += table[(i - 5)]
      for i in range(10, (n + 1)):
          table[i] += table[(i - 10)]
      return table[n]
source_cpp: int count_number_ways_reach_given_score_game(int n) {
    int table [ n + 1 ], i;
    for ( int j = 0;
    j < n + 1;
    j ++ ) table [ j ] = 0;
    table [ 0 ] = 1;
    for ( i = 3;
    i <= n;
    i ++ ) table [ i ] += table [ i - 3 ];
    for ( i = 5;
    i <= n;
    i ++ ) table [ i ] += table [ i - 5 ];
    for ( i = 10;
    i <= n;
    i ++ ) table [ i ] += table [ i - 10 ];
    return table [ n ];
  }
question_info.test_list: [{"idx": 0, "outputs": 30, "inputs": {"n": 83}}, {"idx": 1, "outputs": 4, "inputs": {"n": 29}}, {"idx": 2, "outputs": 1, "inputs": {"n": 17}}, {"idx": 3, "outputs": 1, "inputs": {"n": 12}}, {"idx": 4, "outputs": 37, "inputs": {"n": 93}}, {"idx": 5, "outputs": 16, "inputs": {"n": 55}}, {"idx": 6, "outputs": 33, "inputs": {"n": 97}}, {"idx": 7, "outputs": 27, "inputs": {"n": 75}}, {"idx": 8, "outputs": 2, "inputs": {"n": 22}}, {"idx": 9, "outputs": 10, "inputs": {"n": 52}}]
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(83, 30)
      println("TEST-0...${result}")
      
      result = driver(29, 4)
      println("TEST-1...${result}")
      
      result = driver(17, 1)
      println("TEST-2...${result}")
      
      result = driver(12, 1)
      println("TEST-3...${result}")
      
      result = driver(93, 37)
      println("TEST-4...${result}")
      
      result = driver(55, 16)
      println("TEST-5...${result}")
      
      result = driver(97, 33)
      println("TEST-6...${result}")
      
      result = driver(75, 27)
      println("TEST-7...${result}")
      
      result = driver(22, 2)
      println("TEST-8...${result}")
      
      result = driver(52, 10)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: countNumberWaysReachGivenScoreGame
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