title: Paper Cut Minimum Number Squares
signature: paperCutMinimumNumberSquares(a, b) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(a, b, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          87, 60, 
          9)
      }");
  
      print("TEST-1...${driver(
          18, 35, 
          19)
      }");
  
      print("TEST-2...${driver(
          68, 93, 
          11)
      }");
  
      print("TEST-3...${driver(
          80, 20, 
          4)
      }");
  
      print("TEST-4...${driver(
          87, 69, 
          10)
      }");
  
      print("TEST-5...${driver(
          64, 29, 
          12)
      }");
  
      print("TEST-6...${driver(
          64, 1, 
          64)
      }");
  
      print("TEST-7...${driver(
          65, 95, 
          9)
      }");
  
      print("TEST-8...${driver(
          43, 72, 
          18)
      }");
  
      print("TEST-9...${driver(
          97, 41, 
          11)
      }");
  
      return 0;
  }
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;
  }