QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#771558#9554. The Wheel of Fortuneucup-team5027AC ✓1066ms24632kbC++203.8kb2024-11-22 14:10:562024-11-22 14:11:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 5
1 0
3 0
4 2
2 4
0 2
2 2

output:

0.313777777777778
0.235555555555556
0.107555555555556
0.107555555555556
0.235555555555556

result:

ok 5 numbers

Test #2:

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

input:

8 8
0 0
1 0
2 0
2 1
2 2
1 2
0 2
0 1
1 1

output:

0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000
0.125000000000000

result:

ok 8 numbers

Test #3:

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

input:

3 3
-1 -10
1 -10
0 1
0 0

output:

1.000000000000000
0.000000000000000
0.000000000000000

result:

ok 3 numbers

Test #4:

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

input:

4 36000000
-30000 -30000
30000 -30000
30000 30000
-30000 30000
1 0

output:

0.249998611064813
0.248327777870373
0.249998611064813
0.251675000000000

result:

ok 4 numbers

Test #5:

score: 0
Accepted
time: 6ms
memory: 24276kb

input:

4 2500
5 0
5 5
0 5
0 0
1 1

output:

0.402977500000000
0.402977500000000
0.097022500000000
0.097022500000000

result:

ok 4 numbers

Test #6:

score: 0
Accepted
time: 6ms
memory: 24204kb

input:

100 1000000000
30000 0
29940 1883
29763 3759
29468 5621
29057 7460
28531 9270
27893 11043
27144 12773
26289 14452
25329 16074
24270 17633
23115 19122
21869 20536
20536 21869
19122 23115
17633 24270
16074 25329
14452 26289
12773 27144
11043 27893
9270 28531
7460 29057
5621 29468
3759 29763
1883 29940...

output:

0.009996722093755
0.009998758793771
0.010003654447696
0.009999238070228
0.010002071583828
0.009999123011855
0.010003920889080
0.009998664913116
0.010002148502832
0.010001486218192
0.010000514078003
0.010001767383619
0.010004567240322
0.010001965135349
0.010000907228181
0.010002074764467
0.0100029277...

result:

ok 100 numbers

Test #7:

score: 0
Accepted
time: 4ms
memory: 24244kb

input:

100 1000000000
30000 0
29952 1695
29808 3385
29569 5065
29235 6728
28808 8369
28289 9984
27680 11567
26982 13113
26197 14617
25329 16074
24380 17480
23353 18830
22252 20120
21079 21346
19839 22503
18535 23588
17172 24598
15755 25529
14287 26379
12773 27144
11218 27823
9628 28412
8007 28911
6360 2931...

output:

0.009141821142032
0.009142542042877
0.009144950243864
0.009139041570164
0.009133674383932
0.009135008464874
0.009131194050188
0.009129326709308
0.009127688985668
0.009121328541311
0.009119874118396
0.009116105435245
0.009111172840447
0.009111861535407
0.009103712326342
0.009101914765831
0.0090982424...

result:

ok 100 numbers

Test #8:

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

input:

3 1000000000
30000 0
-14999 25980
-15000 -25980
0 0

output:

0.333345696965694
0.333308606068612
0.333345696965694

result:

ok 3 numbers

Test #9:

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

input:

3 1000000000
30000 0
-3135 29835
-29344 -6237
-827 7866

output:

0.333363282810473
0.333297123058903
0.333339594130624

result:

ok 3 numbers

Test #10:

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

input:

3 1000000000
30000 0
9270 28531
-24270 17633
5000 15388

output:

0.333333333333333
0.333333333333333
0.333333333333333

result:

ok 3 numbers

Test #11:

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

input:

3 1000000000
30000 0
27406 12202
20073 22294
25826 11498

output:

0.333430706438939
0.333471962652619
0.333097330908441

result:

ok 3 numbers

Test #12:

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

input:

3 10000
30000 0
29993 628
29973 1256
29988 628

output:

0.422684279430200
0.422684279430199
0.154631441139601

result:

ok 3 numbers

Test #13:

score: 0
Accepted
time: 7ms
memory: 24532kb

input:

100 1000000000
30000 0
29962 1507
29848 3010
29659 4506
29395 5991
29057 7460
28645 8911
28162 10339
27606 11741
26982 13113
26289 14452
25529 15755
24705 17018
23819 18237
22873 19411
21869 20536
20809 21609
19697 22627
18535 23588
17327 24490
16074 25329
14781 26105
13451 26815
12087 27457
10692 2...

output:

0.008790821516928
0.008775889980000
0.008764593901241
0.008751439933689
0.008730093336370
0.008718772368124
0.008696518599558
0.008682354353726
0.008658357179889
0.008641778082703
0.008626267027417
0.008603873863190
0.008577355944781
0.008561108211569
0.008541064979625
0.008522141797259
0.0084969326...

result:

ok 100 numbers

Test #14:

score: 0
Accepted
time: 12ms
memory: 24296kb

input:

100 1000000000
30000 0
29997 376
29990 753
29978 1130
29962 1507
29940 1883
29914 2259
29884 2635
29848 3010
29808 3385
29763 3759
29713 4133
29659 4506
29600 4879
29536 5250
29468 5621
29395 5991
29318 6360
29235 6728
29148 7094
29057 7460
28961 7825
28860 8188
28755 8550
28645 8911
28531 9270
2841...

output:

0.011567779524614
0.011372207428271
0.011095773908692
0.010880270309617
0.010534392965555
0.010330160830305
0.010131556941975
0.009811298601736
0.009623936240001
0.009366239413032
0.009146050945982
0.008945343517914
0.008739132114509
0.008480435692585
0.008326603315255
0.008112016468452
0.0079403109...

result:

ok 100 numbers

Test #15:

score: 0
Accepted
time: 11ms
memory: 24340kb

input:

100 1000000000
30000 0
29990 753
29962 1507
29914 2259
29848 3010
29763 3759
29659 4506
29536 5250
29395 5991
29235 6728
29057 7460
28860 8188
28645 8911
28412 9628
28162 10339
27893 11043
27606 11741
27303 12431
26982 13113
26644 13787
26289 14452
25917 15108
25529 15755
25125 16391
24705 17018
242...

output:

0.010670572251271
0.010510790814655
0.010297714664594
0.010125401128626
0.009938564039105
0.009760238731995
0.009576321662398
0.009407991070369
0.009227271224682
0.009047492906108
0.008884069100811
0.008720931933556
0.008552617924114
0.008397183951637
0.008228551212485
0.008085586366916
0.0079316384...

result:

ok 100 numbers

Test #16:

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

input:

3 450
0 0
3 0
0 3
1 1

output:

0.333333333333333
0.333333333333333
0.333333333333333

result:

ok 3 numbers

Test #17:

score: 0
Accepted
time: 165ms
memory: 24332kb

input:

500 1000000000
30000 0
29997 376
29990 753
29978 1130
29962 1507
29940 1883
29914 2259
29884 2635
29848 3010
29808 3385
29763 3759
29713 4133
29659 4506
29600 4879
29536 5250
29468 5621
29395 5991
29318 6360
29235 6728
29148 7094
29057 7460
28961 7825
28860 8188
28755 8550
28645 8911
28531 9270
2841...

output:

0.001995326187575
0.002000898360083
0.002001564205549
0.002002363573787
0.001998662665804
0.001999994710432
0.002001592739483
0.001999102556129
0.002001231846747
0.001998952293322
0.002002276215159
0.001999943959943
0.002003928421611
0.001997770755232
0.002001484634161
0.002001242408831
0.0020002807...

result:

ok 500 numbers

Test #18:

score: 0
Accepted
time: 4ms
memory: 24308kb

input:

42 229772401
-29799 -29998
-14711 -29999
13003 -30000
13722 -30000
19205 -30000
23211 -30000
29047 -29998
29748 -29996
29950 -29953
29999 -29615
30000 -25983
30000 -18947
30000 -15272
30000 -6048
30000 -5983
30000 -3733
30000 15793
30000 19010
30000 19045
29999 29809
29931 29905
29799 29961
29153 29...

output:

0.062872074797881
0.115483269515439
0.002996094908565
0.022847828094746
0.016693124083084
0.024325251698313
0.002928976512980
0.001019587013680
0.001612244022326
0.015163266667922
0.029367682209869
0.015339146131770
0.038500213311415
0.000271304625460
0.009391313958227
0.081499909488149
0.0134274920...

result:

ok 42 numbers

Test #19:

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

input:

74 385706227
-13913 -30000
-12810 -30000
-10465 -30000
-2263 -30000
3076 -30000
4342 -30000
7648 -30000
10069 -30000
11118 -30000
17186 -30000
17867 -30000
18197 -30000
19845 -30000
23920 -30000
24670 -30000
28450 -30000
29793 -29998
29954 -29995
29992 -29881
29999 -29275
30000 -24844
30000 -21107
3...

output:

0.004599179193538
0.009777946698863
0.034199880095554
0.022262028752763
0.005278840307361
0.013785028480359
0.010094843905308
0.004374015388958
0.025301740114584
0.002839565757751
0.001376001027985
0.006871665739755
0.016991527845572
0.003127275063602
0.015761466320555
0.005607816005403
0.0006836997...

result:

ok 74 numbers

Test #20:

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

input:

28 423352526
29487 29719
28677 29983
23341 29999
-26763 30000
-28882 29999
-29960 29915
-29970 29204
-29983 26521
-29994 20351
-29997 12702
-30000 4342
-30000 -14762
-29996 -26505
-29991 -29789
-29168 -29847
-27585 -29956
-26267 -29997
-1281 -30000
7756 -29999
26914 -29996
29686 -29963
29991 -29508
...

output:

0.004427619950310
0.022301517887812
0.208922904203468
0.008839649918120
0.004832047462821
0.003001317357253
0.011225238217719
0.025744624392385
0.031885730478211
0.034849122650615
0.079631935308772
0.048956995646974
0.013705401302901
0.003646967505074
0.007004386844545
0.005641134450889
0.1041161019...

result:

ok 28 numbers

Test #21:

score: 0
Accepted
time: 5ms
memory: 24200kb

input:

4 25
0 0
10 0
10 10
0 10
4 4

output:

0.000000000000000
0.500000000000000
0.500000000000000
0.000000000000000

result:

ok 4 numbers

Test #22:

score: 0
Accepted
time: 5ms
memory: 24220kb

input:

4 25
0 0
10 0
10 10
0 10
4 5

output:

0.150000000000000
0.700000000000000
0.150000000000000
0.000000000000000

result:

ok 4 numbers

Test #23:

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

input:

4 24
0 0
10 0
10 10
0 10
4 5

output:

0.141782407407407
0.716435185185185
0.141782407407407
0.000000000000000

result:

ok 4 numbers

Test #24:

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

input:

4 26
0 0
10 0
10 10
0 10
4 6

output:

0.499704142011834
0.499704142011834
0.000295857988166
0.000295857988166

result:

ok 4 numbers

Test #25:

score: 0
Accepted
time: 5ms
memory: 24216kb

input:

7 7130
-13 -11
-10 -14
-5 -15
14 -12
12 15
0 15
-6 15
1 0

output:

0.057347465771527
0.062134142719967
0.205266367189834
0.251570097530561
0.137203655582995
0.068601308438694
0.217876962766422

result:

ok 7 numbers

Test #26:

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

input:

10 654
-10 -2
-4 -8
-2 -9
1 -10
5 -10
10 -8
9 8
6 10
-7 7
-10 6
0 0

output:

0.107825698704510
0.030631040920806
0.044946196210803
0.063405523666779
0.097152780752267
0.256228886066465
0.067757746172257
0.171704999126054
0.042652877870973
0.117694250509085

result:

ok 10 numbers

Test #27:

score: 0
Accepted
time: 197ms
memory: 24224kb

input:

44926 337499999
-4789 30000
-4793 30000
-4807 30000
-4811 30000
-4813 30000
-4831 30000
-4859 30000
-4861 30000
-4863 30000
-4867 30000
-4870 30000
-4878 30000
-4879 30000
-4886 30000
-4894 30000
-4896 30000
-4906 30000
-4916 30000
-4921 30000
-4956 30000
-4958 30000
-4959 30000
-4962 30000
-4965 30...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 44926 numbers

Test #28:

score: 0
Accepted
time: 236ms
memory: 24196kb

input:

52806 128571428
-30000 23329
-30000 23326
-30000 23324
-30000 23320
-30000 23317
-30000 23315
-30000 23314
-30000 23313
-30000 23310
-30000 23309
-30000 23294
-30000 23291
-30000 23289
-30000 23286
-30000 23282
-30000 23281
-30000 23276
-30000 23275
-30000 23271
-30000 23269
-30000 23264
-30000 2324...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 52806 numbers

Test #29:

score: 0
Accepted
time: 273ms
memory: 24252kb

input:

80346 75524475
30000 -29336
30000 -29333
30000 -29327
30000 -29326
30000 -29322
30000 -29317
30000 -29313
30000 -29311
30000 -29310
30000 -29309
30000 -29308
30000 -29302
30000 -29301
30000 -29300
30000 -29296
30000 -29292
30000 -29291
30000 -29290
30000 -29289
30000 -29286
30000 -29282
30000 -29281...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 80346 numbers

Test #30:

score: 0
Accepted
time: 328ms
memory: 24216kb

input:

92549 110769230
30000 12570
30000 12572
30000 12573
30000 12576
30000 12577
30000 12578
30000 12579
30000 12581
30000 12583
30000 12585
30000 12587
30000 12588
30000 12589
30000 12590
30000 12593
30000 12594
30000 12596
30000 12597
30000 12599
30000 12600
30000 12601
30000 12605
30000 12607
30000 12...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 92549 numbers

Test #31:

score: 0
Accepted
time: 6ms
memory: 24204kb

input:

508 92305335
30000 28894
30000 29336
30000 29351
29853 30000
29658 30000
28933 30000
28725 30000
27800 30000
27784 30000
27663 30000
26923 30000
25852 30000
25829 30000
24275 30000
24060 30000
23476 30000
23328 30000
23068 30000
23039 30000
22860 30000
22538 30000
22222 30000
22181 30000
21131 30000...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 508 numbers

Test #32:

score: 0
Accepted
time: 34ms
memory: 24224kb

input:

4967 149999870
30000 -10807
30000 -10767
30000 -10760
30000 -10755
30000 -10717
30000 -10579
30000 -10523
30000 -10515
30000 -10472
30000 -10469
30000 -10446
30000 -10421
30000 -10416
30000 -10401
30000 -10315
30000 -10269
30000 -10261
30000 -10239
30000 -10237
30000 -10200
30000 -10145
30000 -10112...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 4967 numbers

Test #33:

score: 0
Accepted
time: 11ms
memory: 24256kb

input:

1869 79979459
-10237 30000
-10241 30000
-10322 30000
-10364 30000
-10365 30000
-10387 30000
-10401 30000
-10440 30000
-10451 30000
-10489 30000
-10492 30000
-10539 30000
-10551 30000
-10571 30000
-10572 30000
-10599 30000
-10600 30000
-10722 30000
-10744 30000
-10745 30000
-10792 30000
-10797 30000
...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 1869 numbers

Test #34:

score: 0
Accepted
time: 172ms
memory: 24396kb

input:

46772 42022645
24353 30000
24352 30000
24351 30000
24350 30000
24349 30000
24348 30000
24347 30000
24346 30000
24345 30000
24344 30000
24343 30000
24342 30000
24341 30000
24340 30000
24339 30000
24338 30000
24337 30000
24336 30000
24335 30000
24334 30000
24333 30000
24332 30000
24331 30000
24329 300...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 46772 numbers

Test #35:

score: 0
Accepted
time: 6ms
memory: 24296kb

input:

3 100
0 0
200 0
100 100
100 34

output:

1.000000000000000
0.000000000000000
0.000000000000000

result:

ok 3 numbers

Test #36:

score: 0
Accepted
time: 5ms
memory: 24296kb

input:

3 1000000
0 0
200 0
100 100
100 34

output:

0.340133326599327
0.329933336700337
0.329933336700337

result:

ok 3 numbers

Test #37:

score: 0
Accepted
time: 5ms
memory: 24248kb

input:

8 181798
-30 24
-29 -1
-25 -28
-9 -30
23 -26
29 6
22 25
-18 30
-1 0

output:

0.116969558578966
0.126813844850828
0.082701461572765
0.154701559621414
0.153926634057768
0.101960320395841
0.185877194259781
0.077049426662637

result:

ok 8 numbers

Test #38:

score: 0
Accepted
time: 5ms
memory: 24196kb

input:

20 2118062
-100 -77
-99 -94
-95 -100
-87 -100
-41 -100
-35 -100
-2 -100
32 -100
91 -98
100 -91
100 -4
98 97
85 98
51 100
-21 100
-70 99
-98 98
-99 93
-100 -3
-100 -29
0 0

output:

0.022458929134861
0.012259516542964
0.010110873776057
0.058137524212327
0.007583155332043
0.041707354326235
0.042971213526436
0.075376200819685
0.019196230336748
0.109932171420848
0.127521043784088
0.017172198379440
0.044250962475361
0.090978858650184
0.062181689460786
0.035911571734134
0.0074312783...

result:

ok 20 numbers

Test #39:

score: 0
Accepted
time: 8ms
memory: 24252kb

input:

75 214805932
-1000 -833
-997 -918
-992 -968
-983 -983
-971 -992
-957 -997
-795 -999
-606 -1000
-591 -1000
-518 -1000
-453 -1000
-343 -1000
-278 -1000
-227 -1000
-92 -1000
36 -1000
254 -1000
412 -1000
587 -1000
647 -1000
816 -1000
925 -1000
967 -999
992 -991
997 -988
1000 -955
1000 -920
1000 -884
100...

output:

0.010945079744664
0.006809794738834
0.002951080549980
0.002582197252785
0.002344530954521
0.020442958346041
0.023717525106719
0.001876327164991
0.009131458869657
0.008130751048324
0.013759732543318
0.008130751048324
0.006379512360993
0.016886944484981
0.016011325141316
0.027269288131303
0.0197639794...

result:

ok 75 numbers

Test #40:

score: 0
Accepted
time: 7ms
memory: 24244kb

input:

29 116602363
-1500 809
-1499 -730
-1498 -1457
-1493 -1499
-549 -1500
-337 -1500
450 -1500
612 -1500
1372 -1500
1419 -1497
1475 -1464
1485 -1447
1495 -1347
1496 -1253
1499 -939
1500 -180
1500 232
1499 646
1497 1424
1445 1472
1414 1497
1397 1499
1320 1500
858 1500
201 1500
-69 1500
-1084 1500
-1336 14...

output:

0.128324159764381
0.060639797132853
0.003903945753108
0.078822581562896
0.017694833394666
0.065687895667933
0.013521523631773
0.063434308395942
0.004152108357766
0.007272231701688
0.002210846908262
0.009073854844707
0.007899821300273
0.026365029584432
0.063402837514448
0.034410859639290
0.0345908120...

result:

ok 29 numbers

Test #41:

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

input:

37 228390685
-10000 -3648
-9998 -7240
-9995 -9873
-9981 -9914
-9715 -9994
-5410 -9999
-1746 -10000
4667 -9998
8271 -9994
9455 -9978
9785 -9955
9859 -9935
9986 -9789
9997 -8751
9999 -7979
10000 2428
10000 3843
10000 6453
9993 9062
9984 9839
9974 9861
9875 9923
9854 9935
9259 9976
8713 9995
5558 9997
...

output:

0.044945979411174
0.032960099620417
0.000685597784864
0.004298300440682
0.053889453556238
0.045843459881031
0.080230370718445
0.045104928213099
0.014969966697557
0.004391628186452
0.001166438020425
0.003378948781144
0.013099344030295
0.009674802925886
0.130162681983362
0.017698134834293
0.0326446161...

result:

ok 37 numbers

Test #42:

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

input:

128 938582299
-29970 1251
-29943 -1635
-29915 -2253
-29895 -2460
-29604 -4485
-29541 -4920
-29355 -6022
-28837 -8215
-28695 -8696
-27918 -10970
-26683 -13577
-25940 -15058
-25144 -16315
-24547 -17211
-23471 -18579
-22518 -19767
-20929 -21462
-20465 -21915
-19969 -22386
-18916 -23251
-16725 -24873
-1...

output:

0.015324197747658
0.003287938378637
0.001105549931628
0.010856815000528
0.002332593734342
0.005932279803449
0.011963272863236
0.002665305663612
0.012763585059737
0.015302171382967
0.008792633559488
0.007904235541756
0.005719829765102
0.009234885306732
0.008080959199402
0.012333101646893
0.0034457299...

result:

ok 128 numbers

Test #43:

score: 0
Accepted
time: 4ms
memory: 24244kb

input:

63 280454190
-1000 -527
-998 -874
-997 -917
-995 -969
-992 -994
-970 -997
-881 -999
-830 -1000
-811 -1000
-739 -1000
-558 -1000
-482 -1000
-13 -1000
73 -1000
191 -1000
259 -1000
446 -1000
524 -1000
809 -1000
836 -1000
1000 -995
1000 -900
1000 -837
1000 -806
1000 -788
1000 -339
1000 -238
1000 -138
10...

output:

0.043529519260524
0.005476364491267
0.006713261429901
0.003474567397853
0.003107125626099
0.011340058422240
0.006482141647241
0.002376243380385
0.009004711757254
0.022636844834207
0.009504973521545
0.058655691863221
0.010755627932275
0.014757722046610
0.008504449992962
0.023387237480645
0.0097551044...

result:

ok 63 numbers

Test #44:

score: 0
Accepted
time: 84ms
memory: 24260kb

input:

6768 280454190
-1000 -527
-998 -874
-997 -917
-996 -943
-995 -969
-992 -994
-970 -997
-881 -999
-830 -1000
-829 -1000
-828 -1000
-827 -1000
-826 -1000
-825 -1000
-824 -1000
-823 -1000
-822 -1000
-821 -1000
-820 -1000
-819 -1000
-818 -1000
-817 -1000
-816 -1000
-815 -1000
-814 -1000
-813 -1000
-812 -...

output:

0.043529519260524
0.005476364491267
0.003356630714951
0.003356630714951
0.003474567397853
0.003107125626099
0.011340058422240
0.006482141647241
0.000125065441072
0.000125065441073
0.000125065441073
0.000125065441073
0.000125065441073
0.000125065441073
0.000125065441073
0.000125065441073
0.0001250654...

result:

ok 6768 numbers

Test #45:

score: 0
Accepted
time: 309ms
memory: 24232kb

input:

14836 456781370
-20000 -3648
-19999 -4546
-19998 -5444
-19997 -6342
-19996 -7240
-19990 -9873
-19962 -9914
-19829 -9934
-19696 -9954
-19563 -9974
-19430 -9994
-17708 -9995
-15986 -9996
-14264 -9997
-12542 -9998
-10820 -9999
-3492 -10000
2921 -9999
9334 -9998
11136 -9997
12938 -9996
14740 -9995
16542...

output:

0.011239022723521
0.011239022723564
0.011239022723564
0.011239022723422
0.032967511233197
0.000685712607225
0.001074631409536
0.001074631409536
0.001074631409536
0.001074631120263
0.010777893526195
0.010777893526195
0.010777893526195
0.010777893526195
0.010777893523990
0.045843462694225
0.0401151825...

result:

ok 14836 numbers

Test #46:

score: 0
Accepted
time: 170ms
memory: 24584kb

input:

13536 1000000000
-2000 -1054
-1998 -1401
-1996 -1748
-1995 -1791
-1994 -1834
-1993 -1860
-1992 -1886
-1991 -1912
-1990 -1938
-1987 -1963
-1984 -1988
-1962 -1991
-1940 -1994
-1851 -1996
-1762 -1998
-1711 -1999
-1660 -2000
-1659 -2000
-1658 -2000
-1657 -2000
-1656 -2000
-1655 -2000
-1654 -2000
-1653 -...

output:

0.021764741263711
0.021764741263711
0.002738179930995
0.002738179930995
0.001678313937601
0.001678313937601
0.001678313937601
0.001678313937601
0.001737282228865
0.001737282228865
0.001553561524127
0.001553561524128
0.005670024530353
0.005670024530353
0.003241068149071
0.003241068149071
0.0000625326...

result:

ok 13536 numbers

Test #47:

score: 0
Accepted
time: 942ms
memory: 24244kb

input:

44457 228390685
-30000 -10944
-29999 -12740
-29998 -14536
-29997 -16332
-29996 -18128
-29995 -19924
-29994 -21720
-29991 -24353
-29988 -26986
-29985 -29619
-29971 -29660
-29957 -29701
-29943 -29742
-29810 -29782
-29677 -29822
-29544 -29862
-29411 -29902
-29278 -29942
-29145 -29982
-28284 -29983
-274...

output:

0.007519817845718
0.007519817846862
0.007519817846862
0.007519817846862
0.007519817846862
0.007519817821683
0.011028962625147
0.011028962625147
0.011028923183098
0.000229279157843
0.000229279157843
0.000229197230940
0.000717868731373
0.000717868731373
0.000717868731373
0.000717868731373
0.0007178687...

result:

ok 44457 numbers

Test #48:

score: 0
Accepted
time: 1066ms
memory: 24192kb

input:

100000 567640616
-26900 -20713
-26899 -20730
-26898 -20747
-26897 -20764
-26896 -20781
-26895 -20798
-26894 -20815
-26893 -20832
-26892 -20849
-26891 -20866
-26890 -20883
-26889 -20900
-26888 -20917
-26887 -20934
-26886 -20951
-26885 -20968
-26884 -20985
-26883 -21002
-26882 -21019
-26881 -21036
-26...

output:

0.000085983165131
0.000085989558406
0.000085995952395
0.000086002343735
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.000086005337325
0.0000860053...

result:

ok 100000 numbers

Test #49:

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

input:

3 1
0 1
29997 29999
-30000 -30000
-1 0

output:

0.333333333334011
0.333333333323098
0.333333333346139

result:

ok 3 numbers

Test #50:

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

input:

31 868326414
-4992 2357
-4991 377
-4987 -3635
-4977 -4864
-4930 -4879
-4908 -4883
-4592 -4914
-3892 -4957
-3066 -4984
-2538 -4995
-843 -4998
3132 -4995
3987 -4994
4702 -4991
4873 -4970
4893 -4945
4983 -4523
4994 -3407
4994 3487
4992 3931
4920 4249
4768 4864
4657 4959
2860 4985
-398 5000
-1741 4998
-...

output:

0.049750727570881
0.100804234055991
0.031039783480444
0.001525405515368
0.000639030044093
0.008525110624709
0.018291259447224
0.021118512799112
0.013402870927023
0.042613387289397
0.099891461878655
0.021491681579275
0.018016010154894
0.004788882218752
0.001113203839386
0.012633986823595
0.0282486344...

result:

ok 31 numbers

Test #51:

score: 0
Accepted
time: 152ms
memory: 24256kb

input:

7771 868326414
-4992 2357
-4991 377
-4990 -626
-4989 -1629
-4988 -2632
-4987 -3635
-4977 -4864
-4930 -4879
-4919 -4881
-4908 -4883
-4592 -4914
-3892 -4957
-3066 -4984
-3018 -4985
-2970 -4986
-2922 -4987
-2874 -4988
-2826 -4989
-2778 -4990
-2730 -4991
-2682 -4992
-2634 -4993
-2586 -4994
-2538 -4995
-...

output:

0.049750727570881
0.025201058513998
0.025201058513998
0.025201058513998
0.025201058513998
0.031039783480444
0.001525405515368
0.000319515021519
0.000319515022574
0.008525110624709
0.018291259447224
0.021118512799112
0.001218442811429
0.001218442811559
0.001218442811559
0.001218442811559
0.0012184428...

result:

ok 7771 numbers

Test #52:

score: 0
Accepted
time: 210ms
memory: 24608kb

input:

60003 90000
30000 3
-30000 3
-30000 0
-29999 0
-29998 0
-29997 0
-29996 0
-29995 0
-29994 0
-29993 0
-29992 0
-29991 0
-29990 0
-29989 0
-29988 0
-29987 0
-29986 0
-29985 0
-29984 0
-29983 0
-29982 0
-29981 0
-29980 0
-29979 0
-29978 0
-29977 0
-29976 0
-29975 0
-29974 0
-29973 0
-29972 0
-29971 0
-...

output:

0.666666666666667
0.166666666666667
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 60003 numbers

Test #53:

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

input:

11 20938
-9 -10
-5 -10
6 -10
7 -9
10 -4
10 -3
9 3
7 8
-3 9
-5 9
-8 8
0 0

output:

0.063149994197139
0.173663205074760
0.025239243003348
0.097770678463910
0.015750873183518
0.089741517369631
0.080250211727886
0.136615920603357
0.028267486571173
0.050272339349544
0.239278530455735

result:

ok 11 numbers

Test #54:

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

input:

10 57015
-15 -5
-14 -9
1 -15
6 -13
12 -9
14 -5
15 8
9 11
0 15
-9 10
0 0

output:

0.050983526526962
0.171924849749877
0.060490840300810
0.080141502775129
0.051860143960721
0.146926994992344
0.072994710839523
0.105954495800021
0.105858158613208
0.152864776441403

result:

ok 10 numbers

Test #55:

score: 0
Accepted
time: 4ms
memory: 24496kb

input:

77 961361440
-1000 -822
-999 -900
-998 -932
-996 -985
-971 -998
-853 -999
-649 -1000
-465 -1000
-396 -1000
-173 -1000
150 -1000
204 -1000
219 -1000
324 -1000
327 -1000
444 -1000
598 -1000
727 -1000
759 -1000
782 -1000
858 -1000
967 -1000
998 -997
1000 -898
1000 -891
1000 -859
1000 -837
1000 -638
100...

output:

0.009857491239274
0.004110477049566
0.006848043758766
0.004698885007170
0.014849016774742
0.025593434400939
0.023011067381961
0.008629150268236
0.027888413185747
0.040394428067247
0.006753248036010
0.001875902232225
0.013131315625576
0.000375180446445
0.014632037411356
0.019259262917511
0.0161327591...

result:

ok 77 numbers

Test #56:

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

input:

3 1500
0 1
-1 -1
1 0
0 0

output:

0.333333333333333
0.333333333333333
0.333333333333333

result:

ok 3 numbers

Test #57:

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

input:

3 1350001
0 30000
-30000 -30000
29999 1
0 0

output:

0.355319729130718
0.311470398258668
0.333209872610614

result:

ok 3 numbers

Test #58:

score: 0
Accepted
time: 6ms
memory: 24256kb

input:

50 828950930
-1000 -708
-999 -854
-996 -951
-990 -987
-971 -997
-908 -999
-424 -1000
-351 -1000
-93 -1000
219 -1000
577 -1000
846 -1000
927 -1000
975 -995
997 -984
999 -925
1000 -873
1000 -852
1000 -644
1000 -489
1000 -379
1000 -332
1000 130
1000 243
1000 608
1000 745
1000 820
999 947
998 996
949 10...

output:

0.018350385286168
0.012441182916624
0.005198617054619
0.003583946471480
0.008099371758410
0.060592252110504
0.009130915100599
0.032270905424035
0.039025280977903
0.044779008301568
0.033646796740564
0.010131563330802
0.006583642665669
0.004079523843420
0.007603833993463
0.006613438487841
0.0026267134...

result:

ok 50 numbers

Test #59:

score: 0
Accepted
time: 6ms
memory: 24220kb

input:

22 646077457
-4996 170
-4990 -4394
-4951 -4999
2246 -4993
3407 -4977
4701 -4959
4905 -4888
4967 -4491
4973 -4312
4993 -2907
5000 2673
5000 3821
4998 4708
4997 4749
4714 4974
4650 4994
1899 4999
1628 4999
-4514 4993
-4977 4855
-4987 4311
-4996 2879
-2 3

output:

0.114405928163496
0.016008728751440
0.180543715088416
0.029294402270279
0.032653122963112
0.006756729118381
0.011299593641104
0.004599551123908
0.035515788738635
0.139994094544468
0.028820952979526
0.022306782187165
0.001052524378891
0.012386947500000
0.002070284021084
0.069034122308300
0.0067958269...

result:

ok 22 numbers

Test #60:

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

input:

10 915658335
-4800 1741
-4379 -2106
-4143 -3458
-3281 -3640
4898 -4506
4905 -796
3959 3735
3413 4665
-748 4645
-2679 4021
286 59

output:

0.126298366390980
0.045663250276957
0.025703040340739
0.223314352369539
0.114812991519454
0.134754439367000
0.036320852441015
0.127943214466574
0.063631616886165
0.101557875941577

result:

ok 10 numbers

Test #61:

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

input:

12 372760604
-481 367
-480 320
-408 12
-338 -221
-124 -488
330 -472
476 -426
488 -227
489 -74
489 213
358 498
-417 487
40 30

output:

0.014833834169254
0.085550789703417
0.064890323737504
0.094985417676484
0.142840109089966
0.053212911872341
0.056655725521116
0.042260861544443
0.079153815909168
0.093327669339153
0.220638324056070
0.051650217381085

result:

ok 12 numbers

Test #62:

score: 0
Accepted
time: 87ms
memory: 24256kb

input:

6370 828950930
-1000 -708
-999 -854
-996 -951
-995 -957
-994 -963
-993 -969
-992 -975
-991 -981
-990 -987
-971 -997
-908 -999
-424 -1000
-423 -1000
-422 -1000
-421 -1000
-420 -1000
-419 -1000
-418 -1000
-417 -1000
-416 -1000
-415 -1000
-414 -1000
-413 -1000
-412 -1000
-411 -1000
-410 -1000
-409 -100...

output:

0.018350385286168
0.012441182916624
0.000866436175770
0.000866436175770
0.000866436175770
0.000866436175770
0.000866436175770
0.000866436175770
0.003583946471480
0.008099371758410
0.060592252110504
0.000125081028775
0.000125081028775
0.000125081028775
0.000125081028775
0.000125081028775
0.0001250810...

result:

ok 6370 numbers

Test #63:

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

input:

68 836156053
-1000 -845
-997 -951
-995 -984
-970 -997
-903 -1000
-749 -1000
-660 -1000
-528 -1000
-88 -1000
125 -1000
185 -1000
338 -1000
562 -1000
769 -1000
789 -1000
791 -1000
897 -1000
994 -993
998 -938
1000 -798
1000 -794
1000 -624
1000 -474
1000 -124
1000 -84
1000 -60
1000 10
1000 167
1000 325
...

output:

0.013578818439714
0.004354204758137
0.004696004260740
0.008721292566056
0.019266938617182
0.011134789200839
0.016514518814727
0.055048396049091
0.026648428087401
0.007506599461240
0.019141828626161
0.028024637988628
0.025897768141277
0.002502199820413
0.000250219982041
0.013261659048173
0.0129212322...

result:

ok 68 numbers

Test #64:

score: 0
Accepted
time: 7ms
memory: 24264kb

input:

18 42490852
-5674 670
-5664 -1701
-5655 -3334
-5596 -4457
-5503 -4867
-5313 -5366
-4775 -5639
-3211 -5668
3470 -5669
4681 -5623
5653 -5509
5670 5531
5586 5565
4546 5624
3023 5657
-4407 5667
-5566 5655
-5653 4594
10 14

output:

0.052782970836549
0.036367884006460
0.025702737755725
0.010635904673356
0.014413873238792
0.017036711174951
0.035190213537692
0.148772571241159
0.027592814209872
0.023558198129849
0.244523579839724
0.002570321353232
0.023913285508468
0.034069835202692
0.164427614295828
0.025883626605736
0.0251056021...

result:

ok 18 numbers

Test #65:

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

input:

46 578466723
-1234 -751
-1233 -1036
-1232 -1189
-1209 -1233
-994 -1234
-878 -1234
-692 -1234
-242 -1234
20 -1234
62 -1234
106 -1234
564 -1234
648 -1234
1023 -1234
1193 -1230
1234 -1229
1234 -1181
1234 -785
1234 -765
1234 -299
1234 -140
1234 505
1234 739
1233 1214
1215 1226
1139 1232
1026 1234
944 12...

output:

0.028946046519158
0.015578865211417
0.006698127803164
0.021871599577739
0.011756444708694
0.018850850998424
0.045606897576832
0.026553349255844
0.004256643773838
0.004459341096401
0.046417686867086
0.008513287547675
0.038005747980693
0.017565349435668
0.004239807148323
0.004864739095455
0.0401340975...

result:

ok 46 numbers

Test #66:

score: 0
Accepted
time: 7ms
memory: 24192kb

input:

185 206514932
-345 -303
-344 -342
-343 -345
-330 -345
-328 -345
-309 -345
-306 -345
-302 -345
-293 -345
-291 -345
-262 -345
-221 -345
-220 -345
-216 -345
-207 -345
-176 -345
-174 -345
-165 -345
-151 -345
-135 -345
-105 -345
-93 -345
-91 -345
-82 -345
-75 -345
-71 -345
-51 -345
-39 -345
-16 -345
-9 -...

output:

0.014452198063425
0.001443328982332
0.004711303115491
0.000724815863922
0.006885750707256
0.001087223795883
0.001449631727843
0.003261671387648
0.000724815863922
0.010509830026865
0.014858725210395
0.000362407931961
0.001449631727843
0.003261671387648
0.011234645890786
0.000724815863922
0.0032616713...

result:

ok 185 numbers

Test #67:

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

input:

24 12606579
-29995 24816
-29994 1627
-29982 -22716
-29872 -27836
-29774 -28692
-29355 -29864
-26947 -29915
-19036 -29963
-13875 -29979
26469 -29987
28120 -29597
29723 -28499
29942 -23068
29963 -21079
29981 -17228
29991 9950
29950 29009
29375 29546
28852 29736
23957 29949
-21449 29999
-29689 29097
-2...

output:

0.096467430076859
0.101265643091587
0.021639343439737
0.003926745981111
0.006515767370459
0.010234095140959
0.033177886673051
0.021604380105101
0.168659509859560
0.008351301157408
0.010945197617561
0.023501086619230
0.008416535282878
0.016229090595490
0.114253871291314
0.080188455322422
0.0045804920...

result:

ok 24 numbers

Test #68:

score: 0
Accepted
time: 7ms
memory: 24252kb

input:

6 3600000
0 30000
-29999 30000
-30000 29999
-30000 -30000
30000 -30000
30000 30000
0 0

output:

0.124995798630017
0.000008333192131
0.249995763925544
0.250000069478390
0.250000069478390
0.124999965295527

result:

ok 6 numbers

Test #69:

score: 0
Accepted
time: 438ms
memory: 24280kb

input:

100000 3600000
0 30000
-1 30000
-2 30000
-3 30000
-4 30000
-5 30000
-6 30000
-7 30000
-8 30000
-9 30000
-10 30000
-11 30000
-12 30000
-13 30000
-14 30000
-15 30000
-16 30000
-17 30000
-18 30000
-19 30000
-20 30000
-21 30000
-22 30000
-23 30000
-24 30000
-25 30000
-26 30000
-27 30000
-28 30000
-29 30...

output:

0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.000004166665510
0.0000041666...

result:

ok 100000 numbers

Test #70:

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

input:

7 3603603
0 30000
-29999 30000
-30000 29999
-30000 -30000
30000 -30000
30000 29999
29999 30000
0 30

output:

0.000000000000000
0.000000000000000
0.125124888757895
0.749750222484210
0.125124888757895
0.000000000000000
0.000000000000000

result:

ok 7 numbers

Test #71:

score: 0
Accepted
time: 6ms
memory: 24440kb

input:

7 3603604
0 30000
-29999 30000
-30000 29999
-30000 -30000
30000 -30000
30000 29999
29999 30000
0 30

output:

0.000000000000000
0.000000000000000
0.125124958063522
0.749750083872956
0.125124958063522
0.000000000000000
0.000000000000000

result:

ok 7 numbers

Test #72:

score: 0
Accepted
time: 7ms
memory: 24236kb

input:

7 3603605
0 30000
-29999 30000
-30000 29999
-30000 -30000
30000 -30000
30000 29999
29999 30000
0 30

output:

0.000000000000002
0.000000000000000
0.125125027369127
0.749749945261743
0.125125027369127
0.000000000000000
0.000000000000002

result:

ok 7 numbers

Test #73:

score: 0
Accepted
time: 7ms
memory: 24304kb

input:

34 49230709
-3045 -2132
-3038 -2895
-3030 -3035
-2890 -3039
-2661 -3045
-1777 -3045
-1737 -3045
-839 -3045
354 -3045
1164 -3045
2471 -3045
2794 -3042
2963 -3037
3036 -3012
3041 -2891
3045 -1779
3045 -414
3044 1599
3042 2975
3041 3040
2595 3043
2222 3044
-1442 3045
-1653 3045
-1814 3045
-2527 3045
-2...

output:

0.031546570183087
0.006050652529677
0.005895917095545
0.009622869562562
0.036315272502682
0.001643225000121
0.036890401252725
0.049009185628620
0.033275306252458
0.053692376877634
0.013369043570316
0.007124242930797
0.003990291626223
0.005158879958068
0.045774339735714
0.056070977558269
0.0826837015...

result:

ok 34 numbers

Test #74:

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

input:

33 808263406
-4045 2875
-4044 -2401
-4036 -3732
-4030 -3924
-4021 -4042
-3150 -4045
-581 -4045
3460 -4045
3690 -4045
3798 -4045
3954 -4032
4040 -4003
4041 -3752
4044 -2641
4045 -1497
4045 -847
4045 1386
4044 3847
4026 3893
3973 4022
3883 4028
3729 4035
3293 4040
2991 4042
383 4045
7 4045
-2044 4045
...

output:

0.163165909520255
0.041304774676924
0.006096567298549
0.003906210343136
0.027005956627648
0.079440490798617
0.124958747885255
0.007112227669787
0.003339654731900
0.005201488728733
0.003527610209298
0.007784553331939
0.034415818700091
0.035395897996837
0.020104806086804
0.069067741525897
0.0761304946...

result:

ok 33 numbers

Test #75:

score: 0
Accepted
time: 6ms
memory: 24280kb

input:

19 242975558
-20203 17335
-20190 -14872
-20188 -19407
-18706 -20022
-17933 -20188
-14884 -20209
-3023 -20203
16254 -20190
18806 -20105
19710 -19989
20094 -19717
20196 -13758
20200 -8920
20201 19657
20104 20152
19845 20163
10824 20200
-17311 20208
-20172 19908
3 13

output:

0.199452164115530
0.028085213678370
0.012632100129931
0.005701035718019
0.019002188429975
0.073520781214271
0.119486086604139
0.016233734680555
0.006246256486279
0.004000587277966
0.037366418571466
0.030004375078292
0.177167288465139
0.003653735827292
0.001668696192250
0.056012719564255
0.1743374549...

result:

ok 19 numbers

Test #76:

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

input:

14 102952702
-189 171
-187 -3
-185 -155
-176 -174
-42 -188
52 -191
146 -188
184 -167
185 -164
187 -143
187 -62
186 188
-33 190
-140 179
1 1

output:

0.118259559095596
0.103310856882186
0.017847406620929
0.093712057529377
0.064678276010138
0.065784296175232
0.036963805434568
0.002591488029559
0.015158600536568
0.054453892469127
0.167839867141183
0.149354704231505
0.074444153207337
0.035601036636696

result:

ok 14 numbers

Test #77:

score: 0
Accepted
time: 7ms
memory: 24280kb

input:

68 12606579
-29995 24816
-29994 1627
-29982 -22716
-29971 -23228
-29960 -23740
-29949 -24252
-29938 -24764
-29927 -25276
-29916 -25788
-29905 -26300
-29894 -26812
-29883 -27324
-29872 -27836
-29823 -28264
-29774 -28692
-29355 -29864
-26947 -29915
-24310 -29931
-21673 -29947
-19036 -29963
-13875 -299...

output:

0.096467430076859
0.101265643091587
0.002163923335518
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.001963336991863
0.001963408989248
0.006515767370459
0.010234095140959
0.0110592858...

result:

ok 68 numbers

Test #78:

score: 0
Accepted
time: 8ms
memory: 24256kb

input:

68 12606579
-24816 -29995
-1627 -29994
22716 -29982
23228 -29971
23740 -29960
24252 -29949
24764 -29938
25276 -29927
25788 -29916
26300 -29905
26812 -29894
27324 -29883
27836 -29872
28264 -29823
28692 -29774
29864 -29355
29915 -26947
29931 -24310
29947 -21673
29963 -19036
29979 -13875
29980 -8832
29...

output:

0.096467430076859
0.101265643091587
0.002163923335518
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.001963336991863
0.001963408989248
0.006515767370459
0.010234095140959
0.0110592858...

result:

ok 68 numbers

Test #79:

score: 0
Accepted
time: 4ms
memory: 24212kb

input:

68 12606579
29995 -24816
29994 -1627
29982 22716
29971 23228
29960 23740
29949 24252
29938 24764
29927 25276
29916 25788
29905 26300
29894 26812
29883 27324
29872 27836
29823 28264
29774 28692
29355 29864
26947 29915
24310 29931
21673 29947
19036 29963
13875 29979
8832 29980
3789 29981
-1254 29982
-...

output:

0.096467430076859
0.101265643091587
0.002163923335518
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.001963336991863
0.001963408989248
0.006515767370459
0.010234095140959
0.0110592858...

result:

ok 68 numbers

Test #80:

score: 0
Accepted
time: 8ms
memory: 24216kb

input:

68 12606579
24816 29995
1627 29994
-22716 29982
-23228 29971
-23740 29960
-24252 29949
-24764 29938
-25276 29927
-25788 29916
-26300 29905
-26812 29894
-27324 29883
-27836 29872
-28264 29823
-28692 29774
-29864 29355
-29915 26947
-29931 24310
-29947 21673
-29963 19036
-29979 13875
-29980 8832
-29981...

output:

0.096467430076859
0.101265643091587
0.002163923335518
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.002163935567135
0.001963336991863
0.001963408989248
0.006515767370459
0.010234095140959
0.0110592858...

result:

ok 68 numbers

Test #81:

score: 0
Accepted
time: 7ms
memory: 24248kb

input:

68 12606579
27949 -29976
28010 -29968
28071 -29960
28132 -29952
28193 -29944
28254 -29936
28315 -29928
28376 -29920
28437 -29912
28498 -29904
29097 -29689
29548 -25569
29999 -21449
29974 1254
29949 23957
29736 28852
29546 29375
29009 29950
9950 29991
-3639 29986
-17228 29981
-21079 29963
-21742 2995...

output:

0.000284713190813
0.000284789843785
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.003338653138282
0.018573449115996
0.018573951402729
0.094898936849619
0.094899022024414
0.021159354688901
0.002937113270048
0.0045804920...

result:

ok 68 numbers

Test #82:

score: 0
Accepted
time: 8ms
memory: 24316kb

input:

68 12606579
-29976 -27949
-29968 -28010
-29960 -28071
-29952 -28132
-29944 -28193
-29936 -28254
-29928 -28315
-29920 -28376
-29912 -28437
-29904 -28498
-29689 -29097
-25569 -29548
-21449 -29999
1254 -29974
23957 -29949
28852 -29736
29375 -29546
29950 -29009
29991 -9950
29986 3639
29981 17228
29963 2...

output:

0.000284713190813
0.000284789843785
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.003338653138282
0.018573449115996
0.018573951402729
0.094898936849619
0.094899022024414
0.021159354688901
0.002937113270048
0.0045804920...

result:

ok 68 numbers

Test #83:

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

input:

68 12606579
-27949 29976
-28010 29968
-28071 29960
-28132 29952
-28193 29944
-28254 29936
-28315 29928
-28376 29920
-28437 29912
-28498 29904
-29097 29689
-29548 25569
-29999 21449
-29974 -1254
-29949 -23957
-29736 -28852
-29546 -29375
-29009 -29950
-9950 -29991
3639 -29986
17228 -29981
21079 -29963...

output:

0.000284713190813
0.000284789843785
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.003338653138282
0.018573449115996
0.018573951402729
0.094898936849619
0.094899022024414
0.021159354688901
0.002937113270048
0.0045804920...

result:

ok 68 numbers

Test #84:

score: 0
Accepted
time: 7ms
memory: 24256kb

input:

68 12606579
29976 27949
29968 28010
29960 28071
29952 28132
29944 28193
29936 28254
29928 28315
29920 28376
29912 28437
29904 28498
29689 29097
25569 29548
21449 29999
-1254 29974
-23957 29949
-28852 29736
-29375 29546
-29950 29009
-29991 9950
-29986 -3639
-29981 -17228
-29963 -21079
-29956 -21742
-...

output:

0.000284713190813
0.000284789843785
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.000284789918647
0.003338653138282
0.018573449115996
0.018573951402729
0.094898936849619
0.094899022024414
0.021159354688901
0.002937113270048
0.0045804920...

result:

ok 68 numbers

Test #85:

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

input:

70 242975558
-20203 17335
-20190 -14872
-20188 -19407
-19694 -19612
-19200 -19817
-18706 -20022
-17933 -20188
-14884 -20209
-3023 -20203
16254 -20190
18806 -20105
19032 -20076
19258 -20047
19484 -20018
19710 -19989
19734 -19972
19758 -19955
19782 -19938
19806 -19921
19830 -19904
19854 -19887
19878 -...

output:

0.199452164115530
0.028085213678370
0.004210699774810
0.004210700177561
0.004210700177561
0.005701035718019
0.019002188429975
0.073520781214271
0.119486086604139
0.016233734680555
0.001561562186859
0.001561564766473
0.001561564766473
0.001561564766473
0.000250027392464
0.000250037325700
0.0002500373...

result:

ok 70 numbers

Test #86:

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

input:

70 242975558
-17335 -20203
14872 -20190
19407 -20188
19612 -19694
19817 -19200
20022 -18706
20188 -17933
20209 -14884
20203 -3023
20190 16254
20105 18806
20076 19032
20047 19258
20018 19484
19989 19710
19972 19734
19955 19758
19938 19782
19921 19806
19904 19830
19887 19854
19870 19878
19853 19902
19...

output:

0.199452164115530
0.028085213678370
0.004210699774810
0.004210700177561
0.004210700177561
0.005701035718019
0.019002188429975
0.073520781214271
0.119486086604139
0.016233734680555
0.001561562186859
0.001561564766473
0.001561564766473
0.001561564766473
0.000250027392464
0.000250037325700
0.0002500373...

result:

ok 70 numbers

Test #87:

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

input:

70 242975558
20203 -17335
20190 14872
20188 19407
19694 19612
19200 19817
18706 20022
17933 20188
14884 20209
3023 20203
-16254 20190
-18806 20105
-19032 20076
-19258 20047
-19484 20018
-19710 19989
-19734 19972
-19758 19955
-19782 19938
-19806 19921
-19830 19904
-19854 19887
-19878 19870
-19902 198...

output:

0.199452164115530
0.028085213678370
0.004210699774810
0.004210700177561
0.004210700177561
0.005701035718019
0.019002188429975
0.073520781214271
0.119486086604139
0.016233734680555
0.001561562186859
0.001561564766473
0.001561564766473
0.001561564766473
0.000250027392464
0.000250037325700
0.0002500373...

result:

ok 70 numbers

Test #88:

score: 0
Accepted
time: 4ms
memory: 24236kb

input:

70 242975558
17335 20203
-14872 20190
-19407 20188
-19612 19694
-19817 19200
-20022 18706
-20188 17933
-20209 14884
-20203 3023
-20190 -16254
-20105 -18806
-20076 -19032
-20047 -19258
-20018 -19484
-19989 -19710
-19972 -19734
-19955 -19758
-19938 -19782
-19921 -19806
-19904 -19830
-19887 -19854
-198...

output:

0.199452164115530
0.028085213678370
0.004210699774810
0.004210700177561
0.004210700177561
0.005701035718019
0.019002188429975
0.073520781214271
0.119486086604139
0.016233734680555
0.001561562186859
0.001561564766473
0.001561564766473
0.001561564766473
0.000250027392464
0.000250037325700
0.0002500373...

result:

ok 70 numbers

Test #89:

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

input:

70 242975558
17418 -20202
17501 -20201
17584 -20200
17667 -20199
17750 -20198
17833 -20197
17916 -20196
17999 -20195
18082 -20194
18165 -20193
18248 -20192
18331 -20191
18414 -20190
18497 -20189
18580 -20188
18663 -20187
18746 -20186
18829 -20185
18912 -20184
18995 -20183
19078 -20182
19161 -20181
1...

output:

0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.0005194988...

result:

ok 70 numbers

Test #90:

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

input:

70 242975558
-20202 -17418
-20201 -17501
-20200 -17584
-20199 -17667
-20198 -17750
-20197 -17833
-20196 -17916
-20195 -17999
-20194 -18082
-20193 -18165
-20192 -18248
-20191 -18331
-20190 -18414
-20189 -18497
-20188 -18580
-20187 -18663
-20186 -18746
-20185 -18829
-20184 -18912
-20183 -18995
-20182 ...

output:

0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.0005194988...

result:

ok 70 numbers

Test #91:

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

input:

70 242975558
-17418 20202
-17501 20201
-17584 20200
-17667 20199
-17750 20198
-17833 20197
-17916 20196
-17999 20195
-18082 20194
-18165 20193
-18248 20192
-18331 20191
-18414 20190
-18497 20189
-18580 20188
-18663 20187
-18746 20186
-18829 20185
-18912 20184
-18995 20183
-19078 20182
-19161 20181
-...

output:

0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.0005194988...

result:

ok 70 numbers

Test #92:

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

input:

70 242975558
20202 17418
20201 17501
20200 17584
20199 17667
20198 17750
20197 17833
20196 17916
20195 17999
20194 18082
20193 18165
20192 18248
20191 18331
20190 18414
20189 18497
20188 18580
20187 18663
20186 18746
20185 18829
20184 18912
20183 18995
20182 19078
20181 19161
20180 19244
20179 19327...

output:

0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.000519498817340
0.0005194988...

result:

ok 70 numbers

Test #93:

score: 0
Accepted
time: 6ms
memory: 24232kb

input:

21 677783716
-29099 5278
-29026 -15104
-28554 -28893
-20857 -29027
-11113 -29175
-2466 -29176
22733 -29049
27727 -28699
29057 -26960
29188 -19544
29212 16156
29060 24699
28803 27371
27847 28533
13259 29165
2917 29179
-15498 29024
-20676 28941
-25976 27627
-28575 23832
-28964 16568
178 -136

output:

0.088762047426646
0.060992105893091
0.033531439303124
0.042381315121932
0.037390949860404
0.108913292943071
0.022675696403871
0.012790206793508
0.032412970478497
0.154280080904142
0.037301653718136
0.012441125994794
0.008866941500000
0.064854889579621
0.045132532093933
0.080289628473320
0.0226681016...

result:

ok 21 numbers

Test #94:

score: 0
Accepted
time: 6ms
memory: 24216kb

input:

19 633459245
-452 311
-450 46
-438 -367
-425 -435
-363 -454
382 -456
432 -453
443 -394
448 -351
453 -15
456 356
451 440
327 447
95 454
-220 449
-264 446
-291 442
-425 398
-451 380
5 -2

output:

0.074821616512889
0.116343990826291
0.021654871863869
0.021746255778307
0.209585623748106
0.014799971651334
0.018726805297921
0.012913881631189
0.093524097674769
0.103245837025534
0.024639083727850
0.035976546653602
0.066091757298891
0.088925945481362
0.012743007931733
0.008180266206627
0.0450374126...

result:

ok 19 numbers

Test #95:

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

input:

9 687819
-23 -13
-9 -20
1 -22
18 -23
14 18
0 23
-12 23
-18 19
-23 3
-2 0

output:

0.105625986463814
0.068704026414280
0.119107013797565
0.233685639597610
0.106574073114967
0.088599733944408
0.057143003216277
0.112687175154328
0.107873348296752

result:

ok 9 numbers

Test #96:

score: 0
Accepted
time: 6ms
memory: 24272kb

input:

11 12235098
-48 18
-31 -56
16 -66
60 -65
68 -56
68 -55
66 -18
43 59
-13 68
-33 57
-46 34
10 -2

output:

0.159303407263895
0.118832680927298
0.113753680030650
0.038455353988131
0.002337956350426
0.082231567412295
0.158981012674225
0.149669403821979
0.066631698999596
0.070783583425415
0.039019655106090

result:

ok 11 numbers

Test #97:

score: 0
Accepted
time: 9ms
memory: 24252kb

input:

2006 13
-1000 -1
-999 -1
-998 -1
-997 -1
-996 -1
-995 -1
-994 -1
-993 -1
-992 -1
-991 -1
-990 -1
-989 -1
-988 -1
-987 -1
-986 -1
-985 -1
-984 -1
-983 -1
-982 -1
-981 -1
-980 -1
-979 -1
-978 -1
-977 -1
-976 -1
-975 -1
-974 -1
-973 -1
-972 -1
-971 -1
-970 -1
-969 -1
-968 -1
-967 -1
-966 -1
-965 -1
-96...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 2006 numbers

Test #98:

score: 0
Accepted
time: 9ms
memory: 24204kb

input:

2006 13
1 -1000
1 -999
1 -998
1 -997
1 -996
1 -995
1 -994
1 -993
1 -992
1 -991
1 -990
1 -989
1 -988
1 -987
1 -986
1 -985
1 -984
1 -983
1 -982
1 -981
1 -980
1 -979
1 -978
1 -977
1 -976
1 -975
1 -974
1 -973
1 -972
1 -971
1 -970
1 -969
1 -968
1 -967
1 -966
1 -965
1 -964
1 -963
1 -962
1 -961
1 -960
1 -9...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 2006 numbers

Test #99:

score: 0
Accepted
time: 13ms
memory: 24260kb

input:

2006 13
1000 1
999 1
998 1
997 1
996 1
995 1
994 1
993 1
992 1
991 1
990 1
989 1
988 1
987 1
986 1
985 1
984 1
983 1
982 1
981 1
980 1
979 1
978 1
977 1
976 1
975 1
974 1
973 1
972 1
971 1
970 1
969 1
968 1
967 1
966 1
965 1
964 1
963 1
962 1
961 1
960 1
959 1
958 1
957 1
956 1
955 1
954 1
953 1
952...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 2006 numbers

Test #100:

score: 0
Accepted
time: 12ms
memory: 24312kb

input:

2006 13
-1 1000
-1 999
-1 998
-1 997
-1 996
-1 995
-1 994
-1 993
-1 992
-1 991
-1 990
-1 989
-1 988
-1 987
-1 986
-1 985
-1 984
-1 983
-1 982
-1 981
-1 980
-1 979
-1 978
-1 977
-1 976
-1 975
-1 974
-1 973
-1 972
-1 971
-1 970
-1 969
-1 968
-1 967
-1 966
-1 965
-1 964
-1 963
-1 962
-1 961
-1 960
-1 9...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 2006 numbers

Test #101:

score: 0
Accepted
time: 15ms
memory: 24256kb

input:

2009 13
-1000 -1
-999 -1
-998 -1
-997 -1
-996 -1
-995 -1
-994 -1
-993 -1
-992 -1
-991 -1
-990 -1
-989 -1
-988 -1
-987 -1
-986 -1
-985 -1
-984 -1
-983 -1
-982 -1
-981 -1
-980 -1
-979 -1
-978 -1
-977 -1
-976 -1
-975 -1
-974 -1
-973 -1
-972 -1
-971 -1
-970 -1
-969 -1
-968 -1
-967 -1
-966 -1
-965 -1
-96...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 2009 numbers

Test #102:

score: 0
Accepted
time: 11ms
memory: 24320kb

input:

2009 13
-1000 -1
-999 -1
-998 -1
-997 -1
-996 -1
-995 -1
-994 -1
-993 -1
-992 -1
-991 -1
-990 -1
-989 -1
-988 -1
-987 -1
-986 -1
-985 -1
-984 -1
-983 -1
-982 -1
-981 -1
-980 -1
-979 -1
-978 -1
-977 -1
-976 -1
-975 -1
-974 -1
-973 -1
-972 -1
-971 -1
-970 -1
-969 -1
-968 -1
-967 -1
-966 -1
-965 -1
-96...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 2009 numbers

Test #103:

score: 0
Accepted
time: 6ms
memory: 24304kb

input:

11 13
-1000 -1
-999 -1
-998 -1
0 -1
1 -1
998 -1
999 -1
1000 -1
4379 3
4375 3
-1000 2
1013 1

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.059714434764848
0.000145607227091
0.925155141135307
0.014984816872754

result:

ok 11 numbers

Test #104:

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

input:

167 1
-80 -1
-79 -1
-78 -1
-77 -1
-76 -1
-75 -1
-74 -1
-73 -1
-72 -1
-71 -1
-70 -1
-69 -1
-68 -1
-67 -1
-66 -1
-65 -1
-64 -1
-63 -1
-62 -1
-61 -1
-60 -1
-59 -1
-58 -1
-57 -1
-56 -1
-55 -1
-54 -1
-53 -1
-52 -1
-51 -1
-50 -1
-49 -1
-48 -1
-47 -1
-46 -1
-45 -1
-44 -1
-43 -1
-42 -1
-41 -1
-40 -1
-39 -1
...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 167 numbers

Test #105:

score: 0
Accepted
time: 32ms
memory: 24224kb

input:

6006 37
-3000 -1
-2999 -1
-2998 -1
-2997 -1
-2996 -1
-2995 -1
-2994 -1
-2993 -1
-2992 -1
-2991 -1
-2990 -1
-2989 -1
-2988 -1
-2987 -1
-2986 -1
-2985 -1
-2984 -1
-2983 -1
-2982 -1
-2981 -1
-2980 -1
-2979 -1
-2978 -1
-2977 -1
-2976 -1
-2975 -1
-2974 -1
-2973 -1
-2972 -1
-2971 -1
-2970 -1
-2969 -1
-296...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 6006 numbers

Test #106:

score: 0
Accepted
time: 48ms
memory: 24252kb

input:

10009 61
-5000 -1
-4999 -1
-4998 -1
-4997 -1
-4996 -1
-4995 -1
-4994 -1
-4993 -1
-4992 -1
-4991 -1
-4990 -1
-4989 -1
-4988 -1
-4987 -1
-4986 -1
-4985 -1
-4984 -1
-4983 -1
-4982 -1
-4981 -1
-4980 -1
-4979 -1
-4978 -1
-4977 -1
-4976 -1
-4975 -1
-4974 -1
-4973 -1
-4972 -1
-4971 -1
-4970 -1
-4969 -1
-49...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 10009 numbers

Test #107:

score: 0
Accepted
time: 47ms
memory: 24276kb

input:

10009 61
1 -5000
1 -4999
1 -4998
1 -4997
1 -4996
1 -4995
1 -4994
1 -4993
1 -4992
1 -4991
1 -4990
1 -4989
1 -4988
1 -4987
1 -4986
1 -4985
1 -4984
1 -4983
1 -4982
1 -4981
1 -4980
1 -4979
1 -4978
1 -4977
1 -4976
1 -4975
1 -4974
1 -4973
1 -4972
1 -4971
1 -4970
1 -4969
1 -4968
1 -4967
1 -4966
1 -4965
1 -...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 10009 numbers

Test #108:

score: 0
Accepted
time: 45ms
memory: 24240kb

input:

10009 61
5000 1
4999 1
4998 1
4997 1
4996 1
4995 1
4994 1
4993 1
4992 1
4991 1
4990 1
4989 1
4988 1
4987 1
4986 1
4985 1
4984 1
4983 1
4982 1
4981 1
4980 1
4979 1
4978 1
4977 1
4976 1
4975 1
4974 1
4973 1
4972 1
4971 1
4970 1
4969 1
4968 1
4967 1
4966 1
4965 1
4964 1
4963 1
4962 1
4961 1
4960 1
4959...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 10009 numbers

Test #109:

score: 0
Accepted
time: 40ms
memory: 24240kb

input:

10009 61
-1 5000
-1 4999
-1 4998
-1 4997
-1 4996
-1 4995
-1 4994
-1 4993
-1 4992
-1 4991
-1 4990
-1 4989
-1 4988
-1 4987
-1 4986
-1 4985
-1 4984
-1 4983
-1 4982
-1 4981
-1 4980
-1 4979
-1 4978
-1 4977
-1 4976
-1 4975
-1 4974
-1 4973
-1 4972
-1 4971
-1 4970
-1 4969
-1 4968
-1 4967
-1 4966
-1 4965
-1 ...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 10009 numbers

Test #110:

score: 0
Accepted
time: 39ms
memory: 24192kb

input:

10009 61
0 -5000
1 -5000
2 -5000
3 21903
3 21904
3 21905
3 21906
1 13453
-1 5000
-1 4999
-1 4998
-1 4997
-1 4996
-1 4995
-1 4994
-1 4993
-1 4992
-1 4991
-1 4990
-1 4989
-1 4988
-1 4987
-1 4986
-1 4985
-1 4984
-1 4983
-1 4982
-1 4981
-1 4980
-1 4979
-1 4978
-1 4977
-1 4976
-1 4975
-1 4974
-1 4973
-1 ...

output:

0.000000000000000
0.000488137336440
0.833047730627513
0.000019897417532
0.000019892673269
0.000019887930696
0.166404454014553
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 10009 numbers

Test #111:

score: 0
Accepted
time: 38ms
memory: 24224kb

input:

10009 61
5000 0
5000 1
5000 2
-21903 3
-21904 3
-21905 3
-21906 3
-13453 1
-5000 -1
-4999 -1
-4998 -1
-4997 -1
-4996 -1
-4995 -1
-4994 -1
-4993 -1
-4992 -1
-4991 -1
-4990 -1
-4989 -1
-4988 -1
-4987 -1
-4986 -1
-4985 -1
-4984 -1
-4983 -1
-4982 -1
-4981 -1
-4980 -1
-4979 -1
-4978 -1
-4977 -1
-4976 -1
...

output:

0.000000000000000
0.000488137336440
0.833047730627513
0.000019897417532
0.000019892673269
0.000019887930696
0.166404454014553
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 10009 numbers

Test #112:

score: 0
Accepted
time: 39ms
memory: 24220kb

input:

10009 61
0 5000
-1 5000
-2 5000
-3 -21903
-3 -21904
-3 -21905
-3 -21906
-1 -13453
1 -5000
1 -4999
1 -4998
1 -4997
1 -4996
1 -4995
1 -4994
1 -4993
1 -4992
1 -4991
1 -4990
1 -4989
1 -4988
1 -4987
1 -4986
1 -4985
1 -4984
1 -4983
1 -4982
1 -4981
1 -4980
1 -4979
1 -4978
1 -4977
1 -4976
1 -4975
1 -4974
1 ...

output:

0.000000000000000
0.000488137336440
0.833047730627513
0.000019897417532
0.000019892673269
0.000019887930696
0.166404454014553
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 10009 numbers

Test #113:

score: 0
Accepted
time: 46ms
memory: 24232kb

input:

10009 61
-5000 0
-5000 -1
-5000 -2
21903 -3
21904 -3
21905 -3
21906 -3
13453 -1
5000 1
4999 1
4998 1
4997 1
4996 1
4995 1
4994 1
4993 1
4992 1
4991 1
4990 1
4989 1
4988 1
4987 1
4986 1
4985 1
4984 1
4983 1
4982 1
4981 1
4980 1
4979 1
4978 1
4977 1
4976 1
4975 1
4974 1
4973 1
4972 1
4971 1
4970 1
496...

output:

0.000000000000000
0.000488137336440
0.833047730627513
0.000019897417532
0.000019892673269
0.000019887930696
0.166404454014553
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 10009 numbers

Test #114:

score: 0
Accepted
time: 54ms
memory: 24220kb

input:

13009 80
-6500 -1
-6499 -1
-6498 -1
-6497 -1
-6496 -1
-6495 -1
-6494 -1
-6493 -1
-6492 -1
-6491 -1
-6490 -1
-6489 -1
-6488 -1
-6487 -1
-6486 -1
-6485 -1
-6484 -1
-6483 -1
-6482 -1
-6481 -1
-6480 -1
-6479 -1
-6478 -1
-6477 -1
-6476 -1
-6475 -1
-6474 -1
-6473 -1
-6472 -1
-6471 -1
-6470 -1
-6469 -1
-64...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 13009 numbers

Test #115:

score: 0
Accepted
time: 59ms
memory: 24252kb

input:

13009 80
1 -6500
1 -6499
1 -6498
1 -6497
1 -6496
1 -6495
1 -6494
1 -6493
1 -6492
1 -6491
1 -6490
1 -6489
1 -6488
1 -6487
1 -6486
1 -6485
1 -6484
1 -6483
1 -6482
1 -6481
1 -6480
1 -6479
1 -6478
1 -6477
1 -6476
1 -6475
1 -6474
1 -6473
1 -6472
1 -6471
1 -6470
1 -6469
1 -6468
1 -6467
1 -6466
1 -6465
1 -...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 13009 numbers

Test #116:

score: 0
Accepted
time: 59ms
memory: 24196kb

input:

13009 80
6500 1
6499 1
6498 1
6497 1
6496 1
6495 1
6494 1
6493 1
6492 1
6491 1
6490 1
6489 1
6488 1
6487 1
6486 1
6485 1
6484 1
6483 1
6482 1
6481 1
6480 1
6479 1
6478 1
6477 1
6476 1
6475 1
6474 1
6473 1
6472 1
6471 1
6470 1
6469 1
6468 1
6467 1
6466 1
6465 1
6464 1
6463 1
6462 1
6461 1
6460 1
6459...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 13009 numbers

Test #117:

score: 0
Accepted
time: 56ms
memory: 24500kb

input:

13009 80
-1 6500
-1 6499
-1 6498
-1 6497
-1 6496
-1 6495
-1 6494
-1 6493
-1 6492
-1 6491
-1 6490
-1 6489
-1 6488
-1 6487
-1 6486
-1 6485
-1 6484
-1 6483
-1 6482
-1 6481
-1 6480
-1 6479
-1 6478
-1 6477
-1 6476
-1 6475
-1 6474
-1 6473
-1 6472
-1 6471
-1 6470
-1 6469
-1 6468
-1 6467
-1 6466
-1 6465
-1 ...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 13009 numbers

Test #118:

score: 0
Accepted
time: 52ms
memory: 24208kb

input:

13009 80
0 -6500
1 -6500
2 -6500
3 28479
3 28480
3 28481
3 28482
1 17491
-1 6500
-1 6499
-1 6498
-1 6497
-1 6496
-1 6495
-1 6494
-1 6493
-1 6492
-1 6491
-1 6490
-1 6489
-1 6488
-1 6487
-1 6486
-1 6485
-1 6484
-1 6483
-1 6482
-1 6481
-1 6480
-1 6479
-1 6478
-1 6477
-1 6476
-1 6475
-1 6474
-1 6473
-1 ...

output:

0.000000000000000
0.000236529863672
0.824306593902899
0.000016119410146
0.000016116454076
0.000016113498829
0.175408526870373
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 13009 numbers

Test #119:

score: 0
Accepted
time: 48ms
memory: 24200kb

input:

13009 80
6500 0
6500 1
6500 2
-28479 3
-28480 3
-28481 3
-28482 3
-17491 1
-6500 -1
-6499 -1
-6498 -1
-6497 -1
-6496 -1
-6495 -1
-6494 -1
-6493 -1
-6492 -1
-6491 -1
-6490 -1
-6489 -1
-6488 -1
-6487 -1
-6486 -1
-6485 -1
-6484 -1
-6483 -1
-6482 -1
-6481 -1
-6480 -1
-6479 -1
-6478 -1
-6477 -1
-6476 -1
...

output:

0.000000000000000
0.000236529863672
0.824306593902899
0.000016119410146
0.000016116454076
0.000016113498829
0.175408526870373
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 13009 numbers

Test #120:

score: 0
Accepted
time: 49ms
memory: 24224kb

input:

13009 80
0 6500
-1 6500
-2 6500
-3 -28479
-3 -28480
-3 -28481
-3 -28482
-1 -17491
1 -6500
1 -6499
1 -6498
1 -6497
1 -6496
1 -6495
1 -6494
1 -6493
1 -6492
1 -6491
1 -6490
1 -6489
1 -6488
1 -6487
1 -6486
1 -6485
1 -6484
1 -6483
1 -6482
1 -6481
1 -6480
1 -6479
1 -6478
1 -6477
1 -6476
1 -6475
1 -6474
1 ...

output:

0.000000000000000
0.000236529863672
0.824306593902899
0.000016119410146
0.000016116454076
0.000016113498829
0.175408526870373
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 13009 numbers

Test #121:

score: 0
Accepted
time: 58ms
memory: 24252kb

input:

13009 80
-6500 0
-6500 -1
-6500 -2
28479 -3
28480 -3
28481 -3
28482 -3
17491 -1
6500 1
6499 1
6498 1
6497 1
6496 1
6495 1
6494 1
6493 1
6492 1
6491 1
6490 1
6489 1
6488 1
6487 1
6486 1
6485 1
6484 1
6483 1
6482 1
6481 1
6480 1
6479 1
6478 1
6477 1
6476 1
6475 1
6474 1
6473 1
6472 1
6471 1
6470 1
646...

output:

0.000000000000000
0.000236529863672
0.824306593902899
0.000016119410146
0.000016116454076
0.000016113498829
0.175408526870373
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.0000000000...

result:

ok 13009 numbers

Extra Test:

score: 0
Extra Test Passed