title: Paper Cut Minimum Number Squares
signature: function paperCutMinimumNumberSquares(a, b) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(a, b, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(87, 60, 9);
    console.log(`TEST-0...${result}`);
  
    result = driver(18, 35, 19);
    console.log(`TEST-1...${result}`);
  
    result = driver(68, 93, 11);
    console.log(`TEST-2...${result}`);
  
    result = driver(80, 20, 4);
    console.log(`TEST-3...${result}`);
  
    result = driver(87, 69, 10);
    console.log(`TEST-4...${result}`);
  
    result = driver(64, 29, 12);
    console.log(`TEST-5...${result}`);
  
    result = driver(64, 1, 64);
    console.log(`TEST-6...${result}`);
  
    result = driver(65, 95, 9);
    console.log(`TEST-7...${result}`);
  
    result = driver(43, 72, 18);
    console.log(`TEST-8...${result}`);
  
    result = driver(97, 41, 11);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    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;
  }