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 1011. Conductors

An advice
Posted by Happy 24 Jul 2009 19:39
Read the task carefully: "more then P% conductors and less then Q%", not equal!!
And don't use something like this:
i * q > (int)(i * q)
instead, use
i * q - (int)(i * q) > epsilon
where
double epsilon = 1e-7;
Re: An advice
Posted by duancanchao 25 Jul 2009 10:05
Thanks a lot!!
Re: An advice
Posted by ilya_romanenko 14 Jun 2011 23:53
Thank you very much! But why we must use double epsilon = 1e-7; and i*Q-int(i*Q)>epsilon?
Can you tell me it?