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

21
Posted by Mike 28 Mar 2007 16:20
What can be wrong at 21 test?Using c++,double types and rounding with int(double k).
Re: 21
Posted by Iskren Ivov Chernev 28 Sep 2007 01:49
round using (int)(x + 0.5) where x is double
Re: 21
Posted by FC BARCA 15 Nov 2007 19:10
What is wrong in the test #21.Anyone help me.
Re: 21
Posted by Vladimir Alexanov Belgorod STU 8 Dec 2007 18:11
Do you know that real numbers cannnot be compared
sush way: r1=r2.
Insead it is necessaryto write: abs(r1-r2)<0.000001;