ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1073
. Square Country
Hint
Posted by
Marius Žilėnas
24 Oct 2013 16:46
Use Brute Force approach with Lagrange's four square theorem, but to short-cut do check only 1, 2, 3 case. If those do not give any squares then output 4 (see Lagrange's theorem). :)
© 2000–2024
Timus Online Judge Team
. All rights reserved.