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: Previous 1 2
Re: who gets wa6?
Posted by svr 8 Oct 2006 15:11
1.1 1.0 12345
My prog:24676 But Ihave Wa11
Re: who gets wa6?
Posted by Alexander Prudaev 8 Oct 2006 22:03
for test 1.1 1.0 12345
rigth answer IMHO 24676, 24676 < 123456
Test cases
Posted by Ivanidze 9 Oct 2006 00:37
my AC program works on this test cases
4.4 3.4 12478 5094
10 3.4 23577 63033
9.9 8.3 1000000 217687
4.6 1.2 12997 176760
6.6 2.2 44766 157576
10 1 2 359
2 1.9 1000000 105263

Edited by author 18.10.2006 02:45
Re: Test cases
Posted by Marek Kielar 10 Oct 2006 07:26
Ivanidze, did you get AC?

9.9 8.3 1000000 217688 - 217687 makes into over 8.35 -> 8.4
6.6 2.2 44766 157577 - 157576 makes into over 2.25 -> 2.3
2.0 1.9 1000000 105264 - 105263 makes into over 1.95 -> 2.0
Re: Test cases
Posted by Maryin Dima 10 Oct 2006 17:20
Marek Kielar wrote 10 October 2006 07:26
9.9 8.3 1000000 217688 - 217687 makes into over 8.35 -> 8.4
6.6 2.2 44766 157577 - 157576 makes into over 2.25 -> 2.3
2.0 1.9 1000000 105264 - 105263 makes into over 1.95 -> 2.0
Really? I think you are mistaken.
For example: 6.6 2.2 44766
x<6.65=>x*n<6.65*n=297693.9
MAX(x*n)=297693, not 297694 because 297694/44766=6.6500..->6.7
(297693+157576)/(44766+157576)=2.24999752....->2.2
Re: Test cases
Posted by Daniel 10 Oct 2006 18:40
I suppose
9.9 8.3 1000000 217687
6.6 2.2 44766 157576
2.0 1.9 1000000 105263



Edited by author 10.10.2006 18:54
Re: Test cases
Posted by Daniel 11 Oct 2006 19:40
May be this test is useful. At least, it helped me :)
7.8 2.3 100 407
In this snare (x+0.05)*n is integer. In this case we should use (x+0.05)*n-1.
Re: Test cases
Posted by Maryin Dima 11 Oct 2006 21:12
Thank you.
I had:
"...
SI:=(ceil((x+0.05)*n)-1)*100;
..."
And now I have
"...
SI:=(ceil((x+0.05)*n-1e-10)-1)*100;
..."
AC
Re: Test cases
Posted by LoM 30 Oct 2006 00:22
I think 7.8 2.3 100 must be 408.
Am I right?
Re: who gets wa6?
Posted by Piratek-(akaDK) 8 Aug 2008 01:25
svr wrote 8 October 2006 15:11
1.1 1.0 12345
My prog:24676 But Ihave Wa11

Can't understand Ans

((1.149999999) * 12345 + 24676) / (12345 + 24676) > 1.5
My Ans is 24692
Re: who gets wa6?
Posted by lallala 22 Feb 2016 19:28
How many times do I need to submit to get 1% rating??)

Edited by author 22.02.2016 19:36
Pages: Previous 1 2