title: Smallest Of Three Integers Without Comparison Operators
signature: fun smallestOfThreeIntegersWithoutComparisonOperators(x: Int, y: Int, z: Int): Int {
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;
  }
question_info.test_list: [{"idx": 0, "outputs": 23, "inputs": {"x": 23, "y": 98, "z": 25}}, {"idx": 1, "outputs": 55, "inputs": {"x": 87, "y": 55, "z": 94}}, {"idx": 2, "outputs": 29, "inputs": {"x": 35, "y": 90, "z": 29}}, {"idx": 3, "outputs": 9, "inputs": {"x": 25, "y": 9, "z": 41}}, {"idx": 4, "outputs": 22, "inputs": {"x": 93, "y": 22, "z": 39}}, {"idx": 5, "outputs": 42, "inputs": {"x": 52, "y": 42, "z": 96}}, {"idx": 6, "outputs": 26, "inputs": {"x": 95, "y": 88, "z": 26}}, {"idx": 7, "outputs": 51, "inputs": {"x": 91, "y": 64, "z": 51}}, {"idx": 8, "outputs": 1, "inputs": {"x": 75, "y": 1, "z": 6}}, {"idx": 9, "outputs": 44, "inputs": {"x": 96, "y": 44, "z": 76}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(x: Int, y: Int, z: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(x, y, z), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(23, 98, 25, 23)
      println("TEST-0...${result}")
      
      result = driver(87, 55, 94, 55)
      println("TEST-1...${result}")
      
      result = driver(35, 90, 29, 29)
      println("TEST-2...${result}")
      
      result = driver(25, 9, 41, 9)
      println("TEST-3...${result}")
      
      result = driver(93, 22, 39, 22)
      println("TEST-4...${result}")
      
      result = driver(52, 42, 96, 42)
      println("TEST-5...${result}")
      
      result = driver(95, 88, 26, 26)
      println("TEST-6...${result}")
      
      result = driver(91, 64, 51, 51)
      println("TEST-7...${result}")
      
      result = driver(75, 1, 6, 1)
      println("TEST-8...${result}")
      
      result = driver(96, 44, 76, 44)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: smallestOfThreeIntegersWithoutComparisonOperators
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn