title: Check Whether Given Number Even Odd 1
signature: fun checkWhetherGivenNumberEvenOdd1(n: Int): Boolean {
source_py: def check_whether_given_number_even_odd_1(n):
      return (not (n & 1))
source_cpp: bool check_whether_given_number_even_odd_1(int n) {
    return ( ! ( n & 1 ) );
  }
question_info.test_list: [{"idx": 0, "outputs": false, "inputs": {"n": 57}}, {"idx": 1, "outputs": false, "inputs": {"n": 73}}, {"idx": 2, "outputs": false, "inputs": {"n": 79}}, {"idx": 3, "outputs": true, "inputs": {"n": 36}}, {"idx": 4, "outputs": false, "inputs": {"n": 71}}, {"idx": 5, "outputs": false, "inputs": {"n": 23}}, {"idx": 6, "outputs": false, "inputs": {"n": 41}}, {"idx": 7, "outputs": true, "inputs": {"n": 66}}, {"idx": 8, "outputs": true, "inputs": {"n": 46}}, {"idx": 9, "outputs": true, "inputs": {"n": 50}}]
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:Boolean, expected:Boolean):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Boolean):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(57, false)
      println("TEST-0...${result}")
      
      result = driver(73, false)
      println("TEST-1...${result}")
      
      result = driver(79, false)
      println("TEST-2...${result}")
      
      result = driver(36, true)
      println("TEST-3...${result}")
      
      result = driver(71, false)
      println("TEST-4...${result}")
      
      result = driver(23, false)
      println("TEST-5...${result}")
      
      result = driver(41, false)
      println("TEST-6...${result}")
      
      result = driver(66, true)
      println("TEST-7...${result}")
      
      result = driver(46, true)
      println("TEST-8...${result}")
      
      result = driver(50, true)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: checkWhetherGivenNumberEvenOdd1
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