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
1562
. GM-pineapple
Hint test 9
Posted by
Cebotari Vladislav
30 Dec 2016 14:59
I had a program like that:
while (x <= b/2) {
....
x += dx
}
but it will fail test 1 1 100 (the last piece won't show).
Changed to
while (x <= b/2 + 0.000001) {
....
x += dx
}
Got AC!
© 2000–2024
Timus Online Judge Team
. All rights reserved.