title: Count Number Ways Reach Given Score Game
signature: count_number_ways_reach_given_score_game <- function(n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          83L, 
          30L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          29L, 
          4L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          17L, 
          1L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          12L, 
          1L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          93L, 
          37L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          55L, 
          16L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          97L, 
          33L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          75L, 
          27L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          22L, 
          2L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          52L, 
          10L
      )))
  
  }
  
  main()
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 ];
  }