|  | 
|  | 
| вернуться в форум | who gets wa6? Послано frost  7 окт 2006 19:13what's the trick?3% of the ac rating.....
Re: who gets wa6? I have wa6... ttRe: who gets wa6? me too :>Re: who gets wa6? Whats answer to 2 1 18?Re: who gets wa6? Послано frost  7 окт 2006 19:27343?Re: who gets wa6? 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? Послано KIRILL  7 окт 2006 19:52I don't find mistakes in my program, but WA6 toomy 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? 4.4 4.3 1000000Re: What about this test? Послано KIRILL  7 окт 2006 20:29Maybe 14926?my is another My AC program outputs29851
Re: who gets wa6? Послано KIRILL  7 окт 2006 20:39AC rating became 2%try to submit your code 50 times and you'll get AC:)))
Re: my is another Послано KIRILL  7 окт 2006 20:42How 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 You formula is incorrect.What if y == 1.0 ??? You are dividing by 0 ?
Re: my is another Послано KIRILL  7 окт 2006 21:15y:=y+0.05-eps
 without rounding 1.0 will not be achieved
 
 Edited by author 07.10.2006 21:21
Re: my is another 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 Послано KIRILL  7 окт 2006 22:38Yes 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 x*n can beX=(x+.05)*n
 while (X/n>=x+0.05)X--
 
 
 Edited by author 08.10.2006 00:45
Re: my is another Послано frost  8 окт 2006 06:43mine is also 29851, but i still wa@6.why x=x+0.05 Послано Daniel  8 окт 2006 12:57I used y=y+0.05 in my program and get WA6.Why x should be increased x=x+0.05?
 | 
 | 
|