title: Paper Cut Minimum Number Squares
signature: class Solution {
  
      public Integer paperCutMinimumNumberSquares(Integer a, Integer b) {
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.extension: java
question_info.entry_fn_name: paperCutMinimumNumberSquares
question_info.entry_cls_name: Solution
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.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer a, Integer b, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(a, b,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(87, 60, 9);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(18, 35, 19);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(68, 93, 11);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(80, 20, 4);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(87, 69, 10);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(64, 29, 12);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(64, 1, 64);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(65, 95, 9);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(43, 72, 18);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(97, 41, 11);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer a, Integer b, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(a, b),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__