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 1317. Hail

Very strange tests
Posted by Fyodor Menshikov 27 Mar 2009 04:51
I know solution that gets AC with parameter EPS from 1e-0 to 1e-15 (1e+1 and 1e-16 get WA). It is _very_ strange that tests allow such inaccuracy.
Re: Very strange tests
Posted by Vedernikoff Sergey (HSE: АОП) 27 Mar 2009 18:02
It depends on the way use solve the problem. If you do all calculations in integers, any EPS from 1e-0 to 1e-15 will give right answer =)
Re: Very strange tests
Posted by Fyodor Menshikov 29 Mar 2009 05:04
Vedernikoff Sergey (HSE: АОП) wrote 27 March 2009 18:02
If you do all calculations in integers, any EPS from 1e-0 to 1e-15 will give right answer =)

How can you do all calculations in integers if there are a lot of real numbers in input and no limits on number of digits after decimal point?