title: Compute Average Two Numbers Without Overflow 1
signature: pub fn compute_average_two_numbers_without_overflow_1(a: i32, b: 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(a: i32, b: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(a, b), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        9, 81, 
        45
      ));
      
      println!("TEST-1...{}", driver(
        68, 79, 
        73
      ));
      
      println!("TEST-2...{}", driver(
        51, 2, 
        26
      ));
      
      println!("TEST-3...{}", driver(
        31, 49, 
        40
      ));
      
      println!("TEST-4...{}", driver(
        14, 10, 
        12
      ));
      
      println!("TEST-5...{}", driver(
        73, 9, 
        41
      ));
      
      println!("TEST-6...{}", driver(
        51, 13, 
        32
      ));
      
      println!("TEST-7...{}", driver(
        75, 67, 
        71
      ));
      
      println!("TEST-8...{}", driver(
        98, 51, 
        74
      ));
      
      println!("TEST-9...{}", driver(
        83, 74, 
        78
      ));
      
  }
source_py: def compute_average_two_numbers_without_overflow_1(a, b):
      return (((a // 2) + (b // 2)) + (((a % 2) + (b % 2)) // 2))
source_cpp: int compute_average_two_numbers_without_overflow_1(int a, int b) {
    return ( a / 2 ) + ( b / 2 ) + ( ( a % 2 + b % 2 ) / 2 );
  }