title: Paper Cut Minimum Number Squares
signature: pub fn paper_cut_minimum_number_squares(a: i32, b: i32) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(a: i32, b: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(a, b), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        87, 60, 
        9
      ));
      
      println!("TEST-1...{}", driver(
        18, 35, 
        19
      ));
      
      println!("TEST-2...{}", driver(
        68, 93, 
        11
      ));
      
      println!("TEST-3...{}", driver(
        80, 20, 
        4
      ));
      
      println!("TEST-4...{}", driver(
        87, 69, 
        10
      ));
      
      println!("TEST-5...{}", driver(
        64, 29, 
        12
      ));
      
      println!("TEST-6...{}", driver(
        64, 1, 
        64
      ));
      
      println!("TEST-7...{}", driver(
        65, 95, 
        9
      ));
      
      println!("TEST-8...{}", driver(
        43, 72, 
        18
      ));
      
      println!("TEST-9...{}", driver(
        97, 41, 
        11
      ));
      
  }
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;
  }