xxx xxx xxxxxxxxxx xxxxxxxxxx xxx xxx xx xx xx xx xx xx xxx xxx xxxxxxxxxx xxxxxxxxxx xxx xxx Try to count the number of squares by hand first. Listing of the program result (4 coordinates and the result number): (2.0,-1.0), (1.0,-2.0), (2.0,-3.0), (3.0,-2.0) solution 1 (2.0,-1.0), (2.0,-2.0), (3.0,-2.0), (3.0,-1.0) solution 2 (2.0,-1.0), (1.0,-3.0), (3.0,-4.0), (4.0,-2.0) solution 3 ...... (3.0,-9.0), (3.0,-10.0), (4.0,-10.0), (4.0,-9.0) solution 281 (7.0,-9.0), (7.0,-10.0), (8.0,-10.0), (8.0,-9.0) solution 282 (8.0,-9.0), (8.0,-10.0), (9.0,-10.0), (9.0,-9.0) solution 283 The program says that there are 283 squares. Unbelievable isn't it. |