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
1948
. The Robot on the Line
If you got WA @ 5
Posted by
198808xc
10 May 2013 17:16
Try this testcase:
1000000000 1000000000 -1000000000
The answer is 5.
My program uses unsigned int64 in C++, and gets overflow on this case.
© 2000–2024
Timus Online Judge Team
. All rights reserved.