title: Number Unique Rectangles Formed Using N Unit Squares
signature: function numberUniqueRectanglesFormedUsingNUnitSquares(n) {
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(n, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(34, 66);
    console.log(`TEST-0...${result}`);
  
    result = driver(49, 104);
    console.log(`TEST-1...${result}`);
  
    result = driver(41, 83);
    console.log(`TEST-2...${result}`);
  
    result = driver(17, 28);
    console.log(`TEST-3...${result}`);
  
    result = driver(67, 151);
    console.log(`TEST-4...${result}`);
  
    result = driver(38, 76);
    console.log(`TEST-5...${result}`);
  
    result = driver(59, 128);
    console.log(`TEST-6...${result}`);
  
    result = driver(64, 144);
    console.log(`TEST-7...${result}`);
  
    result = driver(61, 135);
    console.log(`TEST-8...${result}`);
  
    result = driver(58, 127);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    main();
  }
source_py: def number_unique_rectangles_formed_using_n_unit_squares(n):
      ans = 0
      for length in range(1, (int(math.sqrt(n)) + 1)):
          height = length
          while ((height * length) <= n):
              ans += 1
              height += 1
      return ans
source_cpp: int number_unique_rectangles_formed_using_n_unit_squares(int n) {
    int ans = 0;
    for ( int length = 1;
    length <= sqrt ( n );
    ++ length ) for ( int height = length;
    height * length <= n;
    ++ height ) ans ++;
    return ans;
  }