title: Multiply An Integer With 3 5
signature: fun multiplyAnIntegerWith35(x: Int): Int {
source_py: def multiply_an_integer_with_3_5(x):
      return (((x << 1) + x) + (x >> 1))
source_cpp: int multiply_an_integer_with_3_5(int x) {
    return ( x << 1 ) + x + ( x >> 1 );
  }
question_info.test_list: [{"idx": 0, "outputs": 203, "inputs": {"x": 58}}, {"idx": 1, "outputs": 56, "inputs": {"x": 16}}, {"idx": 2, "outputs": 287, "inputs": {"x": 82}}, {"idx": 3, "outputs": 115, "inputs": {"x": 33}}, {"idx": 4, "outputs": 308, "inputs": {"x": 88}}, {"idx": 5, "outputs": 178, "inputs": {"x": 51}}, {"idx": 6, "outputs": 283, "inputs": {"x": 81}}, {"idx": 7, "outputs": 133, "inputs": {"x": 38}}, {"idx": 8, "outputs": 276, "inputs": {"x": 79}}, {"idx": 9, "outputs": 311, "inputs": {"x": 89}}]
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, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(x), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(58, 203)
      println("TEST-0...${result}")
      
      result = driver(16, 56)
      println("TEST-1...${result}")
      
      result = driver(82, 287)
      println("TEST-2...${result}")
      
      result = driver(33, 115)
      println("TEST-3...${result}")
      
      result = driver(88, 308)
      println("TEST-4...${result}")
      
      result = driver(51, 178)
      println("TEST-5...${result}")
      
      result = driver(81, 283)
      println("TEST-6...${result}")
      
      result = driver(38, 133)
      println("TEST-7...${result}")
      
      result = driver(79, 276)
      println("TEST-8...${result}")
      
      result = driver(89, 311)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: multiplyAnIntegerWith35
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