title: Number Non Negative Integral Solutions B C N 1
signature: pub fn number_non_negative_integral_solutions_b_c_n_1(n: i32) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(n: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        41, 
        903
      ));
      
      println!("TEST-1...{}", driver(
        72, 
        2701
      ));
      
      println!("TEST-2...{}", driver(
        54, 
        1540
      ));
      
      println!("TEST-3...{}", driver(
        75, 
        2926
      ));
      
      println!("TEST-4...{}", driver(
        87, 
        3916
      ));
      
      println!("TEST-5...{}", driver(
        41, 
        903
      ));
      
      println!("TEST-6...{}", driver(
        78, 
        3160
      ));
      
      println!("TEST-7...{}", driver(
        80, 
        3321
      ));
      
      println!("TEST-8...{}", driver(
        46, 
        1128
      ));
      
      println!("TEST-9...{}", driver(
        9, 
        55
      ));
      
  }
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;
  }