SRM 146 DIV 1 300

はつとっぷこーだ。まあpracticeだけど。

#line 75 "RectangularGrid.cpp"
#include <iostream>
#include <sstream>
#include <string>
#include <vector>

using namespace std;

class RectangularGrid {
        public:
        long long countRectangles (int width, int height) {
        long long total = 0;

        for (int i = 1; i <= width; i++) {
            for (int j = 1; j <= height; j++) {
                if (i == j) continue;

                total += (width + 1 - i) * (height + 1 - j);
            }
        }

        return total;
        }
};