title: Smallest Of Three Integers Without Comparison Operators 1
signature: smallest_of_three_integers_without_comparison_operators_1 <- function(x, y, z) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(x, y, z, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(x, y, z), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          48L, 63L, 56L, 
          56L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          11L, 55L, 84L, 
          84L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          50L, 89L, 96L, 
          96L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          21L, 71L, 74L, 
          74L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          94L, 39L, 42L, 
          42L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          22L, 44L, 86L, 
          86L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          3L, 41L, 68L, 
          68L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          67L, 62L, 94L, 
          94L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          59L, 2L, 83L, 
          83L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          50L, 11L, 1L, 
          1L
      )))
  
  }
  
  main()
source_py: def smallest_of_three_integers_without_comparison_operators_1(x, y, z):
      if (not (y / x)):
          return (y if (not (y / z)) else z)
      return (x if (not (x / z)) else z)
source_cpp: int smallest_of_three_integers_without_comparison_operators_1(int x, int y, int z) {
    if ( ! ( y / x ) ) return ( ! ( y / z ) ) ? y : z;
    return ( ! ( x / z ) ) ? x : z;
  }