title: Smallest Of Three Integers Without Comparison Operators
signature: function smallestOfThreeIntegersWithoutComparisonOperators($x, $y, $z) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($x, $y, $z, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($x, $y, $z), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        23, 98, 25, 
        23));
      
      printf("TEST-1...%s\n",driver(
        87, 55, 94, 
        55));
      
      printf("TEST-2...%s\n",driver(
        35, 90, 29, 
        29));
      
      printf("TEST-3...%s\n",driver(
        25, 9, 41, 
        9));
      
      printf("TEST-4...%s\n",driver(
        93, 22, 39, 
        22));
      
      printf("TEST-5...%s\n",driver(
        52, 42, 96, 
        42));
      
      printf("TEST-6...%s\n",driver(
        95, 88, 26, 
        26));
      
      printf("TEST-7...%s\n",driver(
        91, 64, 51, 
        51));
      
      printf("TEST-8...%s\n",driver(
        75, 1, 6, 
        1));
      
      printf("TEST-9...%s\n",driver(
        96, 44, 76, 
        44));
      
  }
  
  main();
  ?>
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;
  }