QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#451236#8785. Fake Coin and Lying Scalesucup-team3407WA 96ms35400kbC++14477b2024-06-22 23:29:212024-06-22 23:29:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 25ms
memory: 35304kb

input:

2
100 0
100 1

output:

109.861
105.949

result:

ok q=0 (2 test cases)

Test #2:

score: 0
Accepted
time: 23ms
memory: 35260kb

input:

10000
32 6
45 98
67 57
35 70
29 3
22 81
59 12
48 16
63 69
99 36
60 36
32 47
73 91
81 30
7 7
71 57
38 60
35 19
92 40
3 17
21 71
54 62
95 67
60 50
10 20
19 80
64 73
10 21
70 97
84 3
26 22
38 47
37 38
31 91
11 37
73 17
75 98
8 74
73 60
87 10
94 48
35 73
18 14
88 25
61 54
39 59
100 90
70 98
73 21
92 11
...

output:

20.2241
7.76369
7.44305
7.31862
23.8793
7.28722
32.3674
17.0908
7.58063
26.0955
7.53104
6.87982
7.94944
21.7043
4.45339
7.45678
7.20465
7.21765
17.6384
4.76217
7.06902
7.3979
7.76038
7.23621
5.59101
7.21316
7.6675
5.63902
7.9931
81.042
6.03031
6.96198
6.76434
7.55287
6.15211
34.9555
8.01651
6.70498
...

result:

ok q=0 (10000 test cases)

Test #3:

score: 0
Accepted
time: 16ms
memory: 35344kb

input:

1
10000 0

output:

10986.1

result:

ok q=0 (1 test case)

Test #4:

score: 0
Accepted
time: 20ms
memory: 35352kb

input:

1
10000 10

output:

10905.6

result:

ok q=0 (1 test case)

Test #5:

score: 0
Accepted
time: 24ms
memory: 35300kb

input:

1
10000 100

output:

10365.7

result:

ok q=0 (1 test case)

Test #6:

score: 0
Accepted
time: 19ms
memory: 35344kb

input:

1
100000 0

output:

109861

result:

ok q=0 (1 test case)

Test #7:

score: 0
Accepted
time: 17ms
memory: 35348kb

input:

1000
867 38
906 28
876 34
182 38
692 59
986 55
675 20
699 12
741 82
154 11
264 6
682 4
176 19
728 69
37 95
501 56
998 96
495 52
359 86
750 19
726 39
794 6
268 16
609 70
414 45
182 19
123 68
909 56
880 71
419 8
679 14
363 16
751 35
299 73
852 35
901 36
903 63
425 85
416 33
80 89
863 91
491 32
603 84
...

output:

777.622
858.035
802.319
87.7279
525.769
840.932
644.137
704.709
508.017
127.549
262
726.133
126.355
532.089
7.67539
344.135
722.689
349.326
145.705
728.638
626.087
837.619
228.902
411.624
288.988
132.275
11.3778
757.543
679.161
420.361
674.052
328.295
666.653
120.016
773.1
821.09
728.089
203.897
326...

result:

ok q=0 (1000 test cases)

Test #8:

score: 0
Accepted
time: 18ms
memory: 35356kb

input:

1000
71 766
31 464
8 194
12 296
69 506
55 518
31 237
73 576
50 685
1 137
29 661
58 508
46 870
33 172
66 94
41 634
38 725
94 163
94 45
34 685
71 486
95 511
37 108
54 643
64 94
1 624
48 283
1 64
23 122
3 866
52 798
68 669
43 460
68 187
50 403
31 877
100 191
44 512
33 50
91 732
37 584
22 501
46 93
81 7...

output:

10.0495
9.17895
7.666
8.22371
9.61399
9.55174
8.50782
9.79161
9.76705
7.11964
9.47009
9.55719
9.98676
8.17203
7.91159
9.59386
9.6914
8.65179
14.4191
9.60967
9.59479
9.78775
7.80323
9.73207
7.91932
8.63391
8.85381
6.3613
7.67344
8.67381
9.95741
9.89307
9.3187
8.61968
9.23691
9.81524
8.83984
9.4143
6....

result:

ok q=0 (1000 test cases)

Test #9:

score: 0
Accepted
time: 70ms
memory: 35352kb

input:

100000
448906 73251
858780 829062
380117 529011
219451 974416
390411 446812
457769 678634
440286 29979
663948 267273
623318 824172
557346 329036
2366 757990
279231 95725
394222 75586
671713 417299
997686 156089
462641 704003
267172 15563
115033 76151
271539 36507
909436 341831
97232 987703
780566 75...

output:

242700
21.7252
20.8684
21.2046
20.7129
21.2104
353455
96659.9
21.5591
7086.63
18.6888
60920.4
188056
3074.91
555163
21.2524
223401
23.9772
165839
160146
20.8111
21.5894
183511
84477.2
19.8211
289639
100234
20.3774
19.8777
198869
20.5042
21.103
20.503
72910.9
323933
31401.5
18.9755
19.4156
21.7851
19...

result:

ok q=0 (100000 test cases)

Test #10:

score: 0
Accepted
time: 76ms
memory: 35252kb

input:

100000
740599 913
947030 8115
575926 9039
721122 7094
794424 8453
157723 6263
973352 1890
462079 302
333631 3870
435636 4238
572643 7448
775859 6119
343386 2778
486927 1883
880553 7918
878758 5150
274829 778
759586 5734
461205 6806
744940 1346
378522 4830
214767 1511
367452 9987
288068 9685
761467 1...

output:

805982
988105
579950
747487
820110
142608
1.05435e+06
504930
342768
451821
584225
812415
359188
521312
916726
930256
296062
796800
466533
807634
386651
225916
350924
267400
834687
473793
859341
952286
616367
773991
259544
412243
143252
967449
1.00761e+06
543672
374924
559944
327359
1.02863e+06
11034...

result:

ok q=0 (100000 test cases)

Test #11:

score: 0
Accepted
time: 96ms
memory: 35400kb

input:

100000
3460 249080
4870 627106
7714 639325
6245 973410
5156 799724
2143 932101
3190 88015
5691 880401
4405 773261
157 516968
1022 535321
7679 193074
2293 754309
6302 607322
9422 65236
7327 352879
2188 417324
3181 532778
8804 165866
2433 321295
4829 557456
7228 613548
470 947610
2867 326654
1091 7711...

output:

17.7661
18.8602
19.1093
19.424
19.1316
18.8465
16.6852
19.277
19.0195
16.9607
17.9217
17.9096
18.6687
18.9568
16.9268
18.4893
18.0533
18.4844
17.826
17.8442
18.738
19.0356
18.1053
17.943
18.3193
17.9822
18.5744
18.7681
19.5159
19.0641
16.1098
17.135
19.4969
18.3782
17.1361
18.3579
19.1758
17.0855
19...

result:

ok q=0 (100000 test cases)

Test #12:

score: -100
Wrong Answer
time: 91ms
memory: 35308kb

input:

100000
485911443 648621499
967545108 273118575
544774196 541753568
572826636 56596285
997351031 75012282
841305005 238445153
871651103 680174033
831928615 349267999
895576242 735170120
38669405 423897783
879163052 156607422
474161410 146955978
703868457 884260985
882781563 482183053
774752914 414027...

output:

31.5557
2.97866e+08
31.4328
4.05381e+08
7.77499e+08
2.5744e+08
31.8954
1.05964e+08
31.9867
29.8649
4.45376e+08
1.25531e+08
32.0509
2.74886e+07
2.89886e+07
31.4978
30.9549
31.4434
1.73336e+06
31.7231
380877
3.0276e+07
30.9154
30.7617
2.32972e+08
8.74279e+06
31.3665
31.8613
31.4248
31.7439
28.7911
31....

result:

wrong answer WA (test case 2)