QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#509013#8785. Fake Coin and Lying Scalesucup-team3515WA 112ms4072kbC++17569b2024-08-08 02:21:292024-08-08 02:21:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3984kb

input:

2
100 0
100 1

output:

109.861228866811
105.868135977164

result:

ok q=0 (2 test cases)

Test #2:

score: 0
Accepted
time: 0ms
memory: 4060kb

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.209665632951
7.757206436042
7.438781380951
7.310432630997
23.851312739201
7.274645764495
32.360081601736
17.084675527340
7.576005277714
26.092675784537
7.526639318098
6.870879243670
7.945512684253
21.700912125235
4.416819802463
7.452706735435
7.197105730264
7.210433044324
17.635642153973
4.667449...

result:

ok q=0 (10000 test cases)

Test #3:

score: 0
Accepted
time: 0ms
memory: 4048kb

input:

1
10000 0

output:

10986.122886681098

result:

ok q=0 (1 test case)

Test #4:

score: 0
Accepted
time: 0ms
memory: 4056kb

input:

1
10000 10

output:

10905.622581787191

result:

ok q=0 (1 test case)

Test #5:

score: 0
Accepted
time: 0ms
memory: 4064kb

input:

1
10000 100

output:

10365.716433799633

result:

ok q=0 (1 test case)

Test #6:

score: 0
Accepted
time: 0ms
memory: 4068kb

input:

1
100000 0

output:

109861.228866810983

result:

ok q=0 (1 test case)

Test #7:

score: 0
Accepted
time: 2ms
memory: 3992kb

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.619505552615
858.032432387807
802.316749648331
87.725582884569
525.767958264282
840.930062766010
644.132649519524
704.702544890803
508.016009213643
127.541795533123
261.986090107412
726.111898054512
126.350197230570
532.087326767281
7.667766136403
344.133855297030
722.687858414504
349.3247307279...

result:

ok q=0 (1000 test cases)

Test #8:

score: 0
Accepted
time: 0ms
memory: 3976kb

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.045441783385
9.169901148253
7.632086550548
8.199450395224
9.609760589711
9.546556301398
8.498764085885
9.787683063548
9.761288690697
7.119635638018
9.460245347368
9.552270744076
9.980586084748
8.163196490058
7.907174103473
9.586859687086
9.683852306974
8.648732846189
14.416416545056
9.60138622583...

result:

ok q=0 (1000 test cases)

Test #9:

score: 0
Accepted
time: 99ms
memory: 3996kb

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.272133494494
21.725196773536
20.868395763217
21.204555023316
20.712883727392
21.210410923872
353455.419430522714
96659.878281030804
21.559053905192
7086.633723724284
18.688627321319
60920.402732492308
188056.180736427224
3074.905289545655
555163.255493065109
21.252404901199
223401.25333093002...

result:

ok q=0 (100000 test cases)

Test #10:

score: 0
Accepted
time: 112ms
memory: 4008kb

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.413332256838
988105.001414097380
579950.105090568424
747487.286929706112
820109.713644197793
142607.812084785983
1054350.110292704077
504930.434596412641
342767.830010704231
451821.278603971645
584224.531651717843
812415.450835883385
359187.721503199544
521312.230134193378
916726.236460173153...

result:

ok q=0 (100000 test cases)

Test #11:

score: 0
Accepted
time: 112ms
memory: 4048kb

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.765988198549
18.860116068874
19.109271350555
19.423921381778
19.131589630526
18.846389544468
16.685136605974
19.276965895884
19.019472680415
16.958862258294
17.921381875368
17.909530075331
18.668531948031
18.956717571627
16.926738368813
18.489258978891
18.053187908516
18.484319694477
17.825987154...

result:

ok q=0 (100000 test cases)

Test #12:

score: -100
Wrong Answer
time: 100ms
memory: 4072kb

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.556639671326
297865547.732316136360
31.433774709702
405381382.243959724903
777499095.784592270851
257440440.918079972267
31.896320939064
105964410.519398689270
-nan
29.865794762969
445375781.712655544281
125531073.147856771946
-nan
27488638.052286386490
28988568.313442826271
31.498738646507
30.95...

result:

wrong output format Expected double, but "-nan" found (test case 9)