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 1023. Buttons

if you got wa......
Posted by dk647 10 Nov 2007 16:51
I don't know why,
If I write 'to trunc(sqrt(n))' ,it's wa,
but if I write 'to trunc(sqrt(n))+100' ,it's ac.
So, if you got wa ,you can try it ,may be you will get ac.

p.s If you know why,please tell me,thank you.

p.s I'm not live in English-speaking country,so my English is very bad,sorry......

Edited by author 10.11.2007 16:53
Re: if you got wa......
Posted by Denis Koshman 26 Jul 2008 17:48
It's because of skipping 2. Try sqrt(10) - you won't find 5 in 3..sqrt(10) range. And you won't get 2 either.