title: Number Non Negative Integral Solutions B C N
signature: number_non_negative_integral_solutions_b_c_n <- 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(
          62L, 
          2016L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          44L, 
          1035L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          37L, 
          741L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          81L, 
          3403L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          14L, 
          120L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          20L, 
          231L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          76L, 
          3003L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          72L, 
          2701L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          96L, 
          4753L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          52L, 
          1431L
      )))
  
  }
  
  main()
source_py: def number_non_negative_integral_solutions_b_c_n(n):
      result = 0
      for i in range((n + 1)):
          for j in range((n + 1)):
              for k in range((n + 1)):
                  if (((i + j) + k) == n):
                      result += 1
      return result
source_cpp: int number_non_negative_integral_solutions_b_c_n(int n) {
    int result = 0;
    for ( int i = 0;
    i <= n;
    i ++ ) for ( int j = 0;
    j <= n - i;
    j ++ ) for ( int k = 0;
    k <= ( n - i - j );
    k ++ ) if ( i + j + k == n ) result ++;
    return result;
  }