QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#451204#8785. Fake Coin and Lying Scalesucup-team3407TL 154ms4280kbC++14551b2024-06-22 22:44:212024-06-22 22:44:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
100 0
100 1

output:

109.861228867
105.618008208

result:

ok q=0 (2 test cases)

Test #2:

score: 0
Accepted
time: 154ms
memory: 4252kb

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.316227855
8.26007515204
6.81512022447
7.56529845442
23.7539031057
8.25575729385
32.6550121409
17.7629352099
7.34099257265
26.9321299188
7.90808626523
6.8043907699
7.75826085793
22.5724370034
4.09558143308
6.92936576329
7.2285736152
7.36612257317
18.4757055193
6.141847408
7.96730324019
7.308347182...

result:

ok q=0 (10000 test cases)

Test #3:

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

input:

1
10000 0

output:

10986.1228867

result:

ok q=0 (1 test case)

Test #4:

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

input:

1
10000 10

output:

10905.9382907

result:

ok q=0 (1 test case)

Test #5:

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

input:

1
10000 100

output:

10366.7636066

result:

ok q=0 (1 test case)

Test #6:

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

input:

1
100000 0

output:

109861.228867

result:

ok q=0 (1 test case)

Test #7:

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

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:

778.784368808
858.715860449
803.354294451
88.5943410363
527.180595425
841.81819836
644.979918568
704.951395904
509.061762004
127.812094476
262.197531682
726.051544466
126.897268204
532.970032118
8.43593726224
345.109304294
724.598619449
350.560777568
146.817183981
729.160213333
627.236788782
837.701...

result:

ok q=0 (1000 test cases)

Test #8:

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

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:

12.4756758165
11.7387637274
10.1233835305
11.4227090943
11.4236155991
11.8531528434
10.3358530549
11.739632359
12.3190960671
10.262565592
13.0374695077
11.4104674002
12.3142701214
9.64212972214
7.99031188815
11.8971495567
12.249880637
8.98088704833
15.4189235184
13.2354956069
11.5572921424
11.259372...

result:

ok q=0 (1000 test cases)

Test #9:

score: -100
Time Limit Exceeded

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:

-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
-inf
...

result: