|
|
вернуться в форумAn advice Послано Happy 24 июл 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 Thanks a lot!! Re: An advice 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? |
|
|