title: Number Unique Rectangles Formed Using N Unit Squares
signature: numberUniqueRectanglesFormedUsingNUnitSquares(n) {
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(n, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          34, 
          66)
      }");
  
      print("TEST-1...${driver(
          49, 
          104)
      }");
  
      print("TEST-2...${driver(
          41, 
          83)
      }");
  
      print("TEST-3...${driver(
          17, 
          28)
      }");
  
      print("TEST-4...${driver(
          67, 
          151)
      }");
  
      print("TEST-5...${driver(
          38, 
          76)
      }");
  
      print("TEST-6...${driver(
          59, 
          128)
      }");
  
      print("TEST-7...${driver(
          64, 
          144)
      }");
  
      print("TEST-8...${driver(
          61, 
          135)
      }");
  
      print("TEST-9...${driver(
          58, 
          127)
      }");
  
      return 0;
  }
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;
  }