title: Number Rectangles Nm Grid
signature: numberRectanglesNmGrid(n, m) {
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, m, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n, m), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          86, 70, 
          9296385)
      }");
  
      print("TEST-1...${driver(
          33, 65, 
          1203345)
      }");
  
      print("TEST-2...${driver(
          3, 5, 
          90)
      }");
  
      print("TEST-3...${driver(
          91, 12, 
          326508)
      }");
  
      print("TEST-4...${driver(
          33, 27, 
          212058)
      }");
  
      print("TEST-5...${driver(
          13, 75, 
          259350)
      }");
  
      print("TEST-6...${driver(
          75, 36, 
          1898100)
      }");
  
      print("TEST-7...${driver(
          58, 64, 
          3558880)
      }");
  
      print("TEST-8...${driver(
          50, 51, 
          1690650)
      }");
  
      print("TEST-9...${driver(
          4, 44, 
          9900)
      }");
  
      return 0;
  }
source_py: def number_rectangles_nm_grid(n, m):
      return ((((m * n) * (n + 1)) * (m + 1)) // 4)
source_cpp: int number_rectangles_nm_grid(int n, int m) {
    return ( m * n * ( n + 1 ) * ( m + 1 ) ) / 4;
  }