title: Sum Matrix Element Element Integer Division Row Column
signature: function sumMatrixElementElementIntegerDivisionRowColumn(n: number): number {
source_py: def sum_matrix_element_element_integer_division_row_column(N):
      ans = 0
      for i in range(1, (N + 1)):
          for j in range(1, (N + 1)):
              ans += (i // j)
      return ans
source_cpp: int sum_matrix_element_element_integer_division_row_column(int n) {
    int ans = 0;
    for ( int i = 1;
    i <= n;
    i ++ ) for ( int j = 1;
    j <= n;
    j ++ ) ans += ( i / j );
    return ans;
  }
question_info.test_list: [{"idx": 0, "outputs": 7021, "inputs": {"n": 60}}, {"idx": 1, "outputs": 11190, "inputs": {"n": 74}}, {"idx": 2, "outputs": 77, "inputs": {"n": 8}}, {"idx": 3, "outputs": 11190, "inputs": {"n": 74}}, {"idx": 4, "outputs": 1974, "inputs": {"n": 34}}, {"idx": 5, "outputs": 8680, "inputs": {"n": 66}}, {"idx": 6, "outputs": 19920, "inputs": {"n": 96}}, {"idx": 7, "outputs": 156, "inputs": {"n": 11}}, {"idx": 8, "outputs": 3697, "inputs": {"n": 45}}, {"idx": 9, "outputs": 10530, "inputs": {"n": 72}}]
question_info.entry_cls_name: Solution
question_info.test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value: any): string{
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual: number, expected: number): boolean {
      return convertToString(actual) === convertToString(expected);
  }
  
  function driver(n: number, expected:number): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(60, 7021);
    console.log(`TEST-0...${result}`);
  
    result = driver(74, 11190);
    console.log(`TEST-1...${result}`);
  
    result = driver(8, 77);
    console.log(`TEST-2...${result}`);
  
    result = driver(74, 11190);
    console.log(`TEST-3...${result}`);
  
    result = driver(34, 1974);
    console.log(`TEST-4...${result}`);
  
    result = driver(66, 8680);
    console.log(`TEST-5...${result}`);
  
    result = driver(96, 19920);
    console.log(`TEST-6...${result}`);
  
    result = driver(11, 156);
    console.log(`TEST-7...${result}`);
  
    result = driver(45, 3697);
    console.log(`TEST-8...${result}`);
  
    result = driver(72, 10530);
    console.log(`TEST-9...${result}`);
  
  };
  
  main();
question_info.extension: ts
question_info.entry_fn_name: sumMatrixElementElementIntegerDivisionRowColumn
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: tsc --target es2020 --lib es5,dom,es2015,es2020 __FILENAME__
question_info.commands: node __FILENAME__.js