1200 - How many squares
Time Limit : 1 Second
Memory Limit : 128 MB
- You are give a grid of N*M(1< N, M <1000). And your job is to calculate how many different squares can be found in this gird.
- For each test case, given a line of 2 integers, N and M.
- One integer in a line, the number of squares can be found.
- sample input
- sample output