DWITE Online Computer Programming Contest, December 2010, Problem 2
Rectangles can be constructed out of smaller squares. Given a supply of unit squares (
The input file will contain 5 lines, each an integer
The output will contain 5 lines, each a number of unique rectangles that can be constructed from up to
Note: a rectangle is unique if another rectangle that had previously been constructed can't be rotated to look the same way. That is,
Sample Input
Copy
2
6
Sample Output
Copy
2
8
Problem Resource: DWITE
Comments