title: Paper Cut Minimum Number Squares
signature: paper_cut_minimum_number_squares <- function(a, b) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(a, b, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(a, b), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          87L, 60L, 
          9L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          18L, 35L, 
          19L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          68L, 93L, 
          11L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          80L, 20L, 
          4L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          87L, 69L, 
          10L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          64L, 29L, 
          12L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          64L, 1L, 
          64L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          65L, 95L, 
          9L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          43L, 72L, 
          18L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          97L, 41L, 
          11L
      )))
  
  }
  
  main()
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;
  }