ENG  RUSTimus 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 1514. National Park

Test 16
Posted by Victor Barinov (TNU) 11 Jul 2008 02:11
If you have WA on 16 test than maybe you have error in calculation of (xi - xj)^2.
See problem statement |xi| < 10^6 so (xi-xj)^2 may be 4*10^12 and it does not fit in int type.
Re: Test 16
Posted by jollwish 6 Jun 2013 10:56
Thanks a lot indeed! This is just where I've been confused with and your tips are really helpful!