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 1484. Film Rating

Pages: 1 2 Next
who gets wa6?
Posted by frost 7 Oct 2006 19:13
what's the trick?
3% of the ac rating.....
Re: who gets wa6?
Posted by h3r0k1ll3r 7 Oct 2006 19:15
I have wa6... tt
Re: who gets wa6?
Posted by Jarek Versor Przybylowicz 7 Oct 2006 19:18
me too :>
Re: who gets wa6?
Posted by h3r0k1ll3r 7 Oct 2006 19:19
Whats answer to 2 1 18?
Re: who gets wa6?
Posted by SuckMyBalls 7 Oct 2006 19:26
343
Re: who gets wa6?
Posted by frost 7 Oct 2006 19:27
343?
Re: who gets wa6?
Posted by Alexander Prudaev 7 Oct 2006 19:45
frost wrote 7 October 2006 19:13
what's the trick?
3% of the ac rating.....

A lot of wrong tests - is all you need for low AC rating.
Re: who gets wa6?
Posted by KIRILL 7 Oct 2006 19:52
I don't find mistakes in my program, but WA6 too
my prog returns:

10.0 1.0 1000000
179000001

10.0 9.9 1
1

1.1 1.0 12345
123456

10.0 10.0 10
0

"Impossible" answer never returns
What about this test?
Posted by Victor Barinov (TNU) 7 Oct 2006 20:18
4.4 4.3 1000000
Re: What about this test?
Posted by KIRILL 7 Oct 2006 20:29
Maybe 14926?
my is another
Posted by Victor Barinov (TNU) 7 Oct 2006 20:37
My AC program outputs
29851
Re: who gets wa6?
Posted by KIRILL 7 Oct 2006 20:39
AC rating became 2%
try to submit your code 50 times and you'll get AC:)))
Re: my is another
Posted by KIRILL 7 Oct 2006 20:42
How did you got that???
I use n*(y-x)/(1-y)

(14926+4.4*1000)/(14926+1000000)=4.34999793088..
((14926+4.4*1000)/(14926+1000000)):0:1=4.3

Edited by author 07.10.2006 21:08
Re: my is another
Posted by Victor Barinov (TNU) 7 Oct 2006 21:04
You formula is incorrect.
What if y == 1.0 ??? You are dividing by 0 ?
Re: my is another
Posted by KIRILL 7 Oct 2006 21:15
y:=y+0.05-eps

without rounding 1.0 will not be achieved

Edited by author 07.10.2006 21:21
Re: my is another
Posted by Victor Barinov (TNU) 7 Oct 2006 21:33
first:
not  (14926+4.4*1000)/(14926+1000000)=4.34999793088..
but  (14926+4.4*1000000)/(14926+1000000)=4.34999793088..

second:
not  (14926+4.4*1000)/(14926+1000000)=4.34999793088..
but  (14926+4449999)/(14926+1000000)=4.399261621


third:
(29851+4449999)/(29851+1000000)=4.349998204

Re: my is another
Posted by KIRILL 7 Oct 2006 22:38
Yes you are right - i've made mistake while printing:  1000 -> 1000000,
Thank you
but i don't understand how we
should compute not rounded X value

I think that this task  more harder than
it seems after first reading:)


Edited by author 07.10.2006 22:45
Re: my is another
Posted by Ivanidze 7 Oct 2006 23:20
x*n can be
X=(x+.05)*n
while (X/n>=x+0.05)X--


Edited by author 08.10.2006 00:45
Re: my is another
Posted by frost 8 Oct 2006 06:43
mine is also 29851, but i still wa@6.
why x=x+0.05
Posted by Daniel 8 Oct 2006 12:57
I used y=y+0.05 in my program and get WA6.
Why x should be increased x=x+0.05?
Pages: 1 2 Next