title: Smallest Of Three Integers Without Comparison Operators
signature: pub fn smallest_of_three_integers_without_comparison_operators(x: i32, y: i32, z: 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(x: i32, y: i32, z: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(x, y, z), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        23, 98, 25, 
        23
      ));
      
      println!("TEST-1...{}", driver(
        87, 55, 94, 
        55
      ));
      
      println!("TEST-2...{}", driver(
        35, 90, 29, 
        29
      ));
      
      println!("TEST-3...{}", driver(
        25, 9, 41, 
        9
      ));
      
      println!("TEST-4...{}", driver(
        93, 22, 39, 
        22
      ));
      
      println!("TEST-5...{}", driver(
        52, 42, 96, 
        42
      ));
      
      println!("TEST-6...{}", driver(
        95, 88, 26, 
        26
      ));
      
      println!("TEST-7...{}", driver(
        91, 64, 51, 
        51
      ));
      
      println!("TEST-8...{}", driver(
        75, 1, 6, 
        1
      ));
      
      println!("TEST-9...{}", driver(
        96, 44, 76, 
        44
      ));
      
  }
source_py: def smallest_of_three_integers_without_comparison_operators(x, y, z):
      c = 0
      while (x and y and z):
          x = (x - 1)
          y = (y - 1)
          z = (z - 1)
          c = (c + 1)
      return c
source_cpp: int smallest_of_three_integers_without_comparison_operators(int x, int y, int z) {
    int c = 0;
    while ( x && y && z ) {
      x --;
      y --;
      z --;
      c ++;
    }
    return c;
  }