QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#437266#8785. Fake Coin and Lying Scalesucup-team1878#WA 2013ms4308kbC++231.3kb2024-06-09 06:55:552024-06-09 06:55:56

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 4200kb

input:

2
100 0
100 1

output:

109.86122886681097555
105.94421831987180838

result:

ok q=0 (2 test cases)

Test #2:

score: 0
Accepted
time: 3ms
memory: 3972kb

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.10925156310663198
6.68697535633982021
6.14749447681345274
6.35185813347606665
23.82334468237656111
6.49716822529320215
32.23585896173273113
16.82157062451474516
6.33753807970131788
25.77141136744074146
6.47193866661536354
5.95582705760126085
6.61312810638807047
21.37186677409367519
4.091042453358...

result:

ok q=0 (10000 test cases)

Test #3:

score: 0
Accepted
time: 1ms
memory: 4212kb

input:

1
10000 0

output:

10986.12288668109795253

result:

ok q=0 (1 test case)

Test #4:

score: 0
Accepted
time: 1ms
memory: 4156kb

input:

1
10000 10

output:

10905.63041180839354638

result:

ok q=0 (1 test case)

Test #5:

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

input:

1
10000 100

output:

10365.71220468527826597

result:

ok q=0 (1 test case)

Test #6:

score: 0
Accepted
time: 1ms
memory: 4168kb

input:

1
100000 0

output:

109861.22886681098316330

result:

ok q=0 (1 test case)

Test #7:

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

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.59856030976152397
858.01936562479920667
802.29884514305058474
87.58818472611693551
525.72177858070290313
840.90165014078957029
644.12147063103407163
704.70073717609693631
507.95296482926255521
127.51061980923789463
261.98834619281825553
726.12974178104718703
126.29286770723092559
532.03490649435...

result:

ok q=0 (1000 test cases)

Test #8:

score: 0
Accepted
time: 1ms
memory: 3968kb

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:

8.74022952476318160
8.23921497377980572
7.36818718635049219
7.79009723551390465
8.32580750259577229
8.34923082461333443
7.56807791141197583
8.45529848568329001
8.62851762657505539
7.02102334934952665
8.59287028784481777
8.32974968904151325
8.86748856869912849
7.24804287450842910
6.64544689764323770
...

result:

ok q=0 (1000 test cases)

Test #9:

score: 0
Accepted
time: 889ms
memory: 4264kb

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.16955110116396099
15.72666291095200464
15.27737742334962689
15.88820622691749840
15.10850623816470595
15.52645001308146355
353455.38221703912131488
96659.46746742763207294
15.72074721808731823
7085.35870825917299953
15.63703820035290093
60920.10052017512498423
188056.05448470832197927
3073.18...

result:

ok q=0 (100000 test cases)

Test #10:

score: 0
Accepted
time: 2013ms
memory: 4260kb

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.41280618903692812
988104.99709353304933757
579950.09709537413436919
747487.28196149249561131
820109.70826213562395424
142607.79120617196895182
1054350.10936356219463050
504930.43454529851442203
342767.82414709730073810
451821.27369961305521429
584224.52505224745254964
812415.44686687004286796...

result:

ok q=0 (100000 test cases)

Test #11:

score: 0
Accepted
time: 66ms
memory: 4304kb

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:

14.52414303591172562
15.44748368454757426
15.46678102131282095
15.88717328070450741
15.69063465260236256
15.84380910317801572
13.48387860937424776
15.78674543176452971
15.65698463585982125
15.25434918947683727
15.28923475729737902
14.26944282920997686
15.63217010793630735
15.41542724467314329
13.184...

result:

ok q=0 (100000 test cases)

Test #12:

score: -100
Wrong Answer
time: 872ms
memory: 4308kb

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:

22.38897218724784466
297865547.51335453987121582
22.20893407370613204
405381382.18758118152618408
777499095.74308192729949951
257440440.69773030281066895
22.43647154343023686
105964410.07027097046375275
-nan
21.96361519575657439
445375781.59794914722442627
125531072.89352732896804810
-nan
27488637.1...

result:

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