title: Number Non Negative Integral Solutions B C N 1
signature: numberNonNegativeIntegralSolutionsBCN1(n) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(n, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          41, 
          903)
      }");
  
      print("TEST-1...${driver(
          72, 
          2701)
      }");
  
      print("TEST-2...${driver(
          54, 
          1540)
      }");
  
      print("TEST-3...${driver(
          75, 
          2926)
      }");
  
      print("TEST-4...${driver(
          87, 
          3916)
      }");
  
      print("TEST-5...${driver(
          41, 
          903)
      }");
  
      print("TEST-6...${driver(
          78, 
          3160)
      }");
  
      print("TEST-7...${driver(
          80, 
          3321)
      }");
  
      print("TEST-8...${driver(
          46, 
          1128)
      }");
  
      print("TEST-9...${driver(
          9, 
          55)
      }");
  
      return 0;
  }
source_py: def number_non_negative_integral_solutions_b_c_n_1(n):
      return int((((n + 1) * (n + 2)) / 2))
source_cpp: int number_non_negative_integral_solutions_b_c_n_1(int n) {
    return ( ( n + 1 ) * ( n + 2 ) ) / 2;
  }