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

I'm sure tests are wrong. Look example here!
Posted by Orshanskiy Sergey 4 Nov 2002 05:02
I've submitted one 'Accepted Pascal Solution' from forum and
got accepted. Than I started to run my program and that program
on random tests.
After about 100,000 random tests I've noticed the difference.
Example
24.80 24.83
My prg. answered 129
That prg. asnwered 125
But 24.80 / 100 * 125 = 31.0000000000
    24.83 / 100 * 125 = 31.0375000000
      What is the number of conductors?
GREATER than 31 and LESS that 31.0375??
May be GREATER means NOT LESS?

    24.80 / 100 * 129 = 31.992..
    24.83 / 100 * 129 = 32.0307..
And here all is OK.
I got WA,my code also answered 129!!!!
Posted by use_c 6 Nov 2002 15:53
i got 125 bue also wa
Posted by Coldfeel 19 Nov 2002 11:04
i got 125 bue also wa
Re: i got 125 but also wa
Posted by Coldfeel 19 Nov 2002 11:13
just now i change something in my program ,it got AC,i think u the problem have no mistakes in it.
Posted by Coldfeel 19 Nov 2002 14:24
>
BTW:not 125 but 129
Posted by Coldfeel 19 Nov 2002 14:25
> >
NO!!!!
Posted by Serrg 23 Jan 2003 02:07
my program got AC, but for this test it output 129!
Re: I'm sure tests are wrong. Look example here!
Posted by ytj 7 Dec 2005 10:22
but my program got 125
It's still wrong answer
maybe FRAC funtion must be used
Re: I'm sure tests are wrong. Look example here!
Posted by Sni 19 Dec 2005 16:52
haha
My pascal said that trunc(24.8*100)=2479
I'll use round().
My AC Pascal Pro gives 129.
Posted by Yu Yuanming 23 Dec 2005 11:48