UVa : 256 (Quirksome Squares)


Data type:
Long Integer

Hints:
Input will be only (2, 4, 6, 8). Now use brute force to find all possible ans.
To avoid ‘Time Limit Exceed’, just copy-paste the ans. In ur code, like that,

If (Input = eight)
Output:
00000000
00000001
04941729
07441984
24502500
25502500
52881984
60481729
99980001

Job is half done, now just find the ans for 4 and 6.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s