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 1043. Cover an Arc

I suspect rounding errors or something
I have WA#9 too. The program seems to be right. Who can help me?
Victor Barinov (TNU) I think ... (+) [4] // Problem 1043. Cover an Arc 31 Jan 2005 18:17
I think, that your calculations not so are exact, as that is demanded with a problem. Try to not use intermediate values (for example radius etc.).
Gheorghe Stefan Re: [3] // Problem 1043. Cover an Arc 31 Jan 2005 18:27
you have all tests on timustests.4t.com
UNKNOWN_LAMER Re: [2] // Problem 1043. Cover an Arc 31 Jan 2005 22:22
Thank you very much. You were right about my bug. I have just change in my C++ code
     ceil(x) to ceil(x-eps) and
     floor(x) to floor(x+eps)
and got AC!
Hey, UNKNOWN_LAMER! Do I know you from somewhere?
estefy Re: // Problem 1043. Cover an Arc 11 Feb 2018 04:01
je

Edited by author 11.02.2018 04:58