title: Paper Cut Minimum Number Squares
signature: fun paperCutMinimumNumberSquares(a: Int, b: Int): Int {
source_py: def paper_cut_minimum_number_squares(a, b):
      result = 0
      rem = 0
      if (a < b):
          (a, b) = (b, a)
      while (b > 0):
          result += int((a / b))
          rem = int((a % b))
          a = b
          b = rem
      return result
source_cpp: int paper_cut_minimum_number_squares(int a, int b) {
    long long result = 0, rem = 0;
    if ( a < b ) swap ( a, b );
    while ( b > 0 ) {
      result += a / b;
      long long rem = a % b;
      a = b;
      b = rem;
    }
    return result;
  }
question_info.test_list: [{"idx": 0, "outputs": 9, "inputs": {"a": 87, "b": 60}}, {"idx": 1, "outputs": 19, "inputs": {"a": 18, "b": 35}}, {"idx": 2, "outputs": 11, "inputs": {"a": 68, "b": 93}}, {"idx": 3, "outputs": 4, "inputs": {"a": 80, "b": 20}}, {"idx": 4, "outputs": 10, "inputs": {"a": 87, "b": 69}}, {"idx": 5, "outputs": 12, "inputs": {"a": 64, "b": 29}}, {"idx": 6, "outputs": 64, "inputs": {"a": 64, "b": 1}}, {"idx": 7, "outputs": 9, "inputs": {"a": 65, "b": 95}}, {"idx": 8, "outputs": 18, "inputs": {"a": 43, "b": 72}}, {"idx": 9, "outputs": 11, "inputs": {"a": 97, "b": 41}}]
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(a: Int, b: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(a, b), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(87, 60, 9)
      println("TEST-0...${result}")
      
      result = driver(18, 35, 19)
      println("TEST-1...${result}")
      
      result = driver(68, 93, 11)
      println("TEST-2...${result}")
      
      result = driver(80, 20, 4)
      println("TEST-3...${result}")
      
      result = driver(87, 69, 10)
      println("TEST-4...${result}")
      
      result = driver(64, 29, 12)
      println("TEST-5...${result}")
      
      result = driver(64, 1, 64)
      println("TEST-6...${result}")
      
      result = driver(65, 95, 9)
      println("TEST-7...${result}")
      
      result = driver(43, 72, 18)
      println("TEST-8...${result}")
      
      result = driver(97, 41, 11)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: paperCutMinimumNumberSquares
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