|  | 
|  | 
| back to board | Re: who gets wa6? Posted by svr  8 Oct 2006 15:111.1 1.0 12345My prog:24676 But Ihave Wa11
Re: who gets wa6? for test 1.1 1.0 12345rigth answer IMHO 24676, 24676 < 123456
Test cases my AC program works on this test cases4.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 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 9.9 8.3 1000000 217688 - 217687 makes into over 8.35 -> 8.46.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.2Re: Test cases Posted by Daniel  10 Oct 2006 18:40I suppose9.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:40May 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 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:22I think 7.8 2.3 100 must be 408.Am I right?
Re: who gets wa6? 1.1 1.0 12345My prog:24676 But Ihave Wa11
 Can't understand Ans  ((1.149999999) * 12345 + 24676) / (12345 + 24676) > 1.5 My Ans is 24692Re: who gets wa6? Posted by lallala  22 Feb 2016 19:28How many times do I need to submit to get 1% rating??)
 Edited by author 22.02.2016 19:36
 | 
 | 
|