QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#777151#6542. Optimal Quadratic Functiondkim110807AC ✓6339ms7376kbC++172.6kb2024-11-23 23:10:422024-11-23 23:10:42

詳細信息

Test #1:

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

input:

1
4
0 0
1 3
2 9
3 0

output:

5.062500000001476

result:

ok found '5.0625000', expected '5.0625000', error '0.0000000'

Test #2:

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

input:

60
1
1000 -990
2
171 -638
949 -99
2
633 227
-257 -602
3
634 -994
633 999
-374 995
3
445 -110
586 -121
462 29
9
-995 -224
-458 -833
691 -670
456 -259
-376 55
-563 -12
834 827
-826 -220
299 744
17
997 991
997 976
997 988
998 -986
999 -982
999 -980
999 -996
998 -988
998 -991
997 987
1000 996
999 -1000
...

output:

0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
0.000000000000000
543160.125996426947495
121.000000000000000
0.832006181268710
412780.607179487108596
12.250000000000000
15750.250000000000112
118751.380086122037753
880245.505473594310956
1.000000000000214
15.363373360386534
85...

result:

ok 60 numbers

Test #3:

score: 0
Accepted
time: 126ms
memory: 3812kb

input:

1000
1
-585478 527569
1
152984 679945
1
-174472 172630
1
235983 471538
1
-250372 650998
1
521028 -109032
1
121457 989514
1
916700 -223410
1
25908 939341
1
999032 369442
1
249207 -874185
1
-921949 719467
1
-692065 -756006
1
580461 644861
1
-382986 975568
1
644060 -113069
1
-588888 717169
1
2947 -3929...

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 1000 numbers

Test #4:

score: 0
Accepted
time: 176ms
memory: 3864kb

input:

1000
2
578578 -462573
-614596 -50411
2
568651 926188
-15389 -281674
2
-56242 -213116
215036 310015
2
-568452 -743741
-314862 -573269
2
-428037 -926383
-172945 -31965
2
-58020 145819
-69585 116311
2
-629887 -794837
704590 -761914
2
243217 -433618
98814 -457689
2
147490 681479
665176 -119632
2
-851707...

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 1000 numbers

Test #5:

score: 0
Accepted
time: 203ms
memory: 3812kb

input:

1000
3
-734917 -489090
419510 102330
712427 633246
3
36286 -456156
747264 -743132
260371 -674274
3
429263 14588
352092 -105774
547767 232534
3
-913665 328259
240305 -680653
-295994 -678964
3
597443 -368402
-231672 43641
-590555 396735
3
-603016 904082
-607928 649743
464117 526551
3
350193 -351624
33...

output:

0.000000000000026
0.000000000000006
0.000000000000005
0.000000000000058
0.000000000000106
0.000000000000000
0.000000000000000
0.000000000000002
0.000000000000010
0.000000000000002
0.000000000000013
0.000000000000011
0.000000000000000
0.000000000000004
0.000000000000013
0.000000000000010
0.0000000000...

result:

ok 1000 numbers

Test #6:

score: 0
Accepted
time: 229ms
memory: 3780kb

input:

1000
4
-48411 -514672
165369 -349660
-281244 -842990
50473 -422110
4
-487482 -318709
861670 -709796
-491931 -335068
-523699 -455262
4
-817575 -338873
869501 905839
-717462 -668516
841972 769497
4
530706 615905
128991 -871809
82920 -948448
-317630 -725769
4
144451 772470
-923425 791489
513030 193835
...

output:

0.001635253628334
0.441888894582977
0.095087649234579
3655702.652041469400729
769858.665965179609316
876.964420813104694
2.383378175733986
0.003314335521666
0.046074291904300
0.414087194467353
31534.752852247763643
0.011533334104877
1322109.793599441878655
2475705.141872081662314
5494047.07657934553...

result:

ok 1000 numbers

Test #7:

score: 0
Accepted
time: 248ms
memory: 3876kb

input:

1000
5
-425128 981633
-381689 946206
957441 996145
84010 712860
-8814 738024
5
235841 662950
864929 -477349
823444 -108225
714735 661226
300163 983888
5
-972539 106077
-856485 556296
-951397 193386
-207377 778279
-862794 555900
5
-877483 818676
537271 -193411
341352 408858
167065 819835
451709 87895...

output:

162.217423813964973
24899.703042939825073
111166879.556448930605256
440.668047191033076
45502620.026470055141544
0.908165805464748
48119370.938410715323698
1331743.107386635368016
1145.041046427209537
11911.409090733246884
898995.931081814875256
0.281486418157213
7.835265463605484
0.770599247918454
...

result:

ok 1000 numbers

Test #8:

score: 0
Accepted
time: 391ms
memory: 3724kb

input:

1000
10
860001 272235
-30508 220967
711207 504388
77794 647164
303746 959200
592742 534104
57277 254211
266565 968002
919148 568676
991753 -20796
10
95213 204518
35283 198770
69842 203724
-316246 248661
-319918 245804
-923990 767251
-689125 503455
175418 229272
90053 206083
-815528 637145
10
-808164...

output:

52855287328.844837348908186
4736213.545032762882784
325.276607997365484
11692527.619339804877200
61306.467096100320077
24947264304.363289972767234
492734951022.520575106143951
0.965345763687243
1913.495512788362590
385.474669367790887
6.448445477241041
42078421804.716756794601679
5867468.01576466723...

result:

ok 1000 numbers

Test #9:

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

input:

1
4
-1000000 -1000000
-999999 1000000
999999 1000000
1000000 -1000000

output:

0.000000000000002

result:

ok found '0.0000000', expected '0.0000000', error '0.0000000'

Test #10:

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

input:

1
4
-1000000 -1000000
-999999 1000000
-999998 1000000
-999997 -100000

output:

12656250000.000000051222742

result:

ok found '12656250000.0000000', expected '12656250000.0000000', error '0.0000000'

Test #11:

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

input:

1
4
-1000000 -1000000
-999999 1000000
-999998 1000000
-999997 -1000000

output:

0.000000000000000

result:

ok found '0.0000000', expected '0.0000000', error '-0.0000000'

Test #12:

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

input:

1
4
-1000000 -300000
-999999 300000
-999998 300000
-999997 -300000

output:

0.000000000000000

result:

ok found '0.0000000', expected '0.0000000', error '-0.0000000'

Test #13:

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

input:

1
4
-1000000 -999999
-999999 999998
-999998 999996
-999997 -999999

output:

0.562500000000512

result:

ok found '0.5625000', expected '0.5625000', error '0.0000000'

Test #14:

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

input:

8
4
-1000000 -1000000
-999999 1000000
999999 999977
1000000 -1000000
4
-1000000 -1000000
-999999 1000000
999999 999770
1000000 -1000000
4
-1000000 -1000000
-999999 1000000
999999 997770
1000000 -1000000
4
-1000000 -1000000
-999999 1000000
999999 977770
1000000 -1000000
4
-1000000 -1000000
-999999 10...

output:

33.062533078049401
3306.253307415282807
310806.560866302214549
30885837.137345049221040
62499875000.002895414829254
561097185.454214028315619
0.563063182144579
2770157895.509595137322322

result:

ok 8 numbers

Test #15:

score: 0
Accepted
time: 30ms
memory: 3872kb

input:

50
20
-78760 901241
-290160 346799
-100100 886312
-400033 -7842
-128289 858428
-443380 -236792
-204313 613533
870820 96059
812309 226162
-35539 980448
797663 345545
-445875 -256648
-460410 -299719
627726 793426
832862 169452
656272 795052
-339551 196857
-34433 992148
-388395 11457
-255059 482328
20
...

output:

1995515551.237597091821954
81676587.164034128276398
15097.239984572737835
23.395512462928986
579359934.008904756454285
3853.663650216887800
50.381382977550507
2611489.366259177106258
131464690.063198950214428
2137.820045129135996
284.143966613847308
564775635.754286566108931
39822891364.870316289365...

result:

ok 50 numbers

Test #16:

score: 0
Accepted
time: 4716ms
memory: 3744kb

input:

500
300
-574218 -271807
-443150 -83950
15479 867073
-467689 -121944
-318587 129168
-24306 766466
-968754 -612160
-814705 -519500
-60831 677156
-195474 372912
-44244 717366
-134450 505915
-523893 -204101
-179966 405956
-732527 -448979
-886997 -569400
-190507 383431
-538163 -223837
-885831 -568677
-60...

output:

223.573987094264870
11176.342884448351425
1192.744752966319122
453187006.523460620024707
554031869.365172855672427
9.206159027452737
126.713165458282481
2.791225195576027
7790357819.292220349889249
13298746917.737906844355166
138873066385.789167344570160
4982989809.313072484917939
67327474.877934503...

result:

ok 500 numbers

Test #17:

score: 0
Accepted
time: 6293ms
memory: 7220kb

input:

2
100000
856014 -110712
-748941 799207
-390374 -391739
448342 -991095
-64136 -981770
583018 -785726
-94728 -935377
768587 -365471
-102072 -963217
-547043 88834
-57865 -990529
-569447 175470
-331771 -501999
-123570 -924764
-86739 -946110
-481573 -114452
-143293 -909698
-188793 -835029
-368557 -415082...

output:

1147482388.200333762331866
27.055180841584491

result:

ok 2 numbers

Test #18:

score: 0
Accepted
time: 3062ms
memory: 3808kb

input:

1000
100
-119975 -664365
949391 58457
740004 -370401
540289 -639167
-788110 721100
416862 -768862
-510399 -3617
-438471 -204422
-820344 865532
-788887 755411
601194 -601478
-489457 -66989
-702681 494011
581714 -590937
621839 -564798
-596490 195550
390610 -797275
-511753 -13584
-295498 -456173
260700...

output:

601442791.650945001281798
24.854725353088950
12179361658.026381910778582
3766193.376707815947839
162530385978.941976085305214
12661609.462427347127232
4212.845367024395519
47746959069.069123189896345
38556717282.990229032933712
34153564.442104580917658
109150.232111475095714
20645.945185076951251
10...

result:

ok 1000 numbers

Test #19:

score: 0
Accepted
time: 6281ms
memory: 3736kb

input:

1000
200
789124 -486241
-585609 207780
-420071 646265
-719341 -271629
798017 -517521
-358192 786061
882118 -897750
-572109 237809
584895 259362
-626674 62322
-504210 442329
-343020 802463
477414 549189
709507 -158428
802832 -539018
-273113 927143
639188 90473
-780485 -522065
330923 858488
719753 -19...

output:

91156684.238484630419407
3501.157282581100490
3851361410.713613705243915
2454734.159858253337688
5.035905468363828
82.768321851016961
284923642635.197393566370010
380786260.887654750607908
17.167559207141562
5682477627.402098661288619
4.455316299494956
1265.284105618941398
68.279476028378666
1036.49...

result:

ok 1000 numbers

Test #20:

score: 0
Accepted
time: 6286ms
memory: 3788kb

input:

666
300
733074 -538691
-186759 708121
19954 783003
144458 730949
204506 673961
553123 25690
226219 653422
624395 -178962
414482 359209
438237 305003
-273026 615231
-614391 -107992
-400931 412346
-483918 233375
-285489 597497
582783 -58643
-327538 537216
514448 125717
347458 484719
806041 -811603
783...

output:

14218890.035171628276657
1560980.928485396097358
135793682616.935297831892967
597586.356124804178819
2293035.645541419374013
29924753323.670497059822083
102.669386819913746
2001978.225451372804741
32.629074193924020
3.322093823253976
12200829391.232103035785258
204120702.974959589730133
59027030680....

result:

ok 666 numbers

Test #21:

score: 0
Accepted
time: 6296ms
memory: 3808kb

input:

500
400
-357828 -511505
811629 806298
595389 228873
228176 -405417
-718847 -22231
43107 -557461
478070 -20663
375542 -203854
468039 -41469
224127 -408358
87768 -530964
-370957 -500036
518859 60735
-647687 -152816
762116 659689
-140768 -600992
-314127 -540262
691144 464427
-822638 195188
640167 33654...

output:

2164267.283429465697282
60833.544926528646137
30687521.121493888307668
409369199255.907583624124527
156645670.160403725793003
1133.028810576095516
1180.614521175999579
9652051207.435832980088890
1404312.118016583911412
116471.295274839738340
19045036850.036670504137874
47077498545.720456466078758
13...

result:

ok 500 numbers

Test #22:

score: 0
Accepted
time: 6285ms
memory: 4028kb

input:

400
500
-500380 -894037
849708 881783
-558459 209296
851475 918558
-514750 -630889
829936 476110
-549945 42354
787624 -354093
814192 160977
-502873 -848842
772553 -637093
832402 525820
777452 -545681
-516265 -602612
813882 154790
822592 328889
818427 245057
846509 816020
798227 -150855
-540278 -1459...

output:

336358.682896539704643
739007712.313709533656947
8062740.943841711788082
46895.725808527863045
6280.637154307843924
18764.817724766975092
4518783186.364422908984125
163.266277516211476
444006974975.432819575071335
43.545280837983838
8.723682178784458
3172.478947286028236
1539479650.007799018640071
1...

result:

ok 400 numbers

Test #23:

score: 0
Accepted
time: 6293ms
memory: 3832kb

input:

333
600
397147 736863
710330 449692
713165 445736
742693 406407
-80845 715759
-131224 681331
256197 788247
4673 760369
-636028 -4806
600988 576750
-287208 535378
644821 529254
699244 463843
-791164 -339893
804029 317447
-256744 568277
894333 169764
991373 -10561
701153 461309
-500555 240181
-655423 ...

output:

51526.628640774771554
5144056.832732756208770
1108984120.801921507227235
536.957276568081202
2.181490737324716
2855000.521571603024995
7.895070927111174
26330215618.203479990363121
70553.222650687844158
4296.461212631694950
158697.164677726077258
27333878.097917914858044
347065432.788835244864458
11...

result:

ok 333 numbers

Test #24:

score: 0
Accepted
time: 6286ms
memory: 3944kb

input:

285
700
950915 -131859
287194 -348466
732575 15902
252777 -413880
216880 -487731
981137 -169278
536902 -34166
642935 14401
833007 -25394
549734 -25558
747152 12749
470592 -90277
905736 -83662
693698 19630
838447 -28990
954527 -136018
230712 -458599
739346 14424
369980 -213227
237154 -445291
106468 -...

output:

7872.481725621805021
137.323614327270541
7.321764106366350
108838738.727808839263162
143181888199.645695090293884
180745.030983443742528
3757486297.452667986042798
49308496.072982904202945
3.421210508254381
3719.395043117249267
5468199288.934101643506438
36176108156.892694205045700
167194.5344147856...

result:

ok 285 numbers

Test #25:

score: 0
Accepted
time: 6279ms
memory: 3764kb

input:

250
800
215344 949751
609032 593146
-105838 241410
-305554 -651790
-63750 385360
190202 926700
977848 -964837
372668 969088
723821 235110
-183595 -65083
2137 579745
874313 -407943
-274645 -490837
-352061 -909644
-108768 230807
118691 831006
7827 594698
-353540 -918151
479010 860107
528736 775396
137...

output:

1220.641279276477170
3841279.090263164282987
12.579284569229747
575705766647.108673930168152
1558427.697904968188595
103457223182.753914743661880
3.124442230678623
4899838959.084596900269389
787527992820.611447453498840
398.600385172268043
102710.607943929904906
213705230964.388251945376396
101864.4...

result:

ok 250 numbers

Test #26:

score: 0
Accepted
time: 6273ms
memory: 3884kb

input:

222
900
159295 -261280
-490655 -364459
-564376 -402728
-604271 -425659
-11582 -247668
558244 -406118
307888 -296721
818686 -586122
623984 -445193
-316296 -295538
-829005 -584571
-271531 -282717
885932 -643583
-20565 -247759
944306 -697087
198978 -268580
189596 -266716
564738 -409799
652943 -463779
-...

output:

191.797796652748787
888649.482906008794941
2548.312986157449795
237569579369.748610302805901
24.760432618392515
1529.443615671811231
2001480394.492799919913523
7281629.924625642842329
50766.110972170979153
168430563771.426041215658188
806829.977563501235238
1571.277729570770552
6.718947145780213
156...

result:

ok 222 numbers

Test #27:

score: 0
Accepted
time: 6274ms
memory: 3768kb

input:

200
1000
921973 -681192
106799 -803185
-788145 993628
-416714 -4302
967514 -643801
151959 -857032
914844 -693738
440285 -958716
76084 -767643
-234739 -342853
-783938 978294
88850 -779199
994748 -589724
547596 -955741
827485 -776166
-509420 218589
-103043 -577817
-480852 137104
-207939 -394029
636786...

output:

451896268.537263946287567
7.049967588883508
5671529.651536270038378
664528040183.416007101535797
85.120652047944500
7648180137.928525442257524
1992099913.640588324517012
44806.031686274763235
1741949577.069134999183007
3.191682285156749
59567996.321444512712333
831472726.286549076205119
5.0613397629...

result:

ok 200 numbers

Test #28:

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

input:

20
10000
367451 -409708
455070 -596428
-849725 742244
471078 -632029
165323 -32253
-955469 715329
-923101 725677
481472 -655412
605011 -948267
-407637 634856
147682 -2823
212276 -113335
54592 143212
-915359 727879
-706038 746189
185824 -67108
-390828 623713
445008 -574302
488755 -671854
209758 -1088...

output:

4742.417483950584128
5708564220.394415894057602
173867306652.475074589252472
262985.123265799610266
430508202.917946109577315
84862534.918968713100185
880.520404983236959
45696595.621844001685531
315.429555857473068
305020763584.993354886770248
857.447657516134548
138426330564.162180677056313
7316.9...

result:

ok 20 numbers

Test #29:

score: 0
Accepted
time: 6298ms
memory: 7256kb

input:

2
100000
456841 473364
686221 501790
971762 617932
-460757 766289
699 504584
432758 447040
374796 454319
572086 478648
-193285 584233
491439 463152
-248925 592962
990805 603449
271131 432749
632227 506041
663581 521394
835276 572284
-686905 908087
878120 545025
9952 525303
-230097 589015
520429 4563...

output:

1144656406.727578856167383
2762.706008108013423

result:

ok 2 numbers

Test #30:

score: 0
Accepted
time: 6268ms
memory: 3832kb

input:

200
1000
355997 447007
-647551 160906
135262 493431
-191209 471687
-123387 482560
-947728 -194956
456306 412695
-288271 408556
-590730 228483
29143 515969
136898 495379
-437761 347020
-414146 347047
665752 276974
-654078 154335
-196238 463226
531736 340356
811033 150173
-508933 298732
-699464 117175...

output:

453791424.360949916968821
4.500433525261196
349576359429.362123578786850
56072644255.024456884711981
472464940.015856797690503
28.545541783298497
3126.607871445806647
16689736.816518556383016
48476275650.293661706149578
28360079.480687102224692
13621103754.057865246199071
260995817.092189860573853
2...

result:

ok 200 numbers

Test #31:

score: 0
Accepted
time: 6270ms
memory: 4076kb

input:

20
10000
-198525 -699168
735571 -956068
73682 -861911
668211 -965932
-925579 89819
-26783 -810274
-318416 -604594
-969046 153288
849510 -929129
-531191 -402219
900779 -912916
-569364 -361171
-388794 -542459
-274404 -640970
946191 -896402
-666538 -250493
762366 -950829
163122 -899613
-418908 -514429
...

output:

4765.842909881610335
75778.430636048540599
31472925652.563681153580546
5541071814.076665338128805
12531584794.804677671752870
5.034535634163120
79583249.174232248034969
263.579186094766396
2111504.015020722006284
9220669.671490605398503
8882473448.249860893934965
58104345751.712516158819199
51959698...

result:

ok 20 numbers

Test #32:

score: 0
Accepted
time: 6339ms
memory: 7376kb

input:

2
100000
856014 -110712
-748941 799207
-390374 -391739
448342 -991095
-64136 -981770
583018 -785726
-94728 -935377
768587 -365471
-102072 -963217
-547043 88834
-57865 -990529
-569447 175470
-331771 -501999
-123570 -924764
-86739 -946110
-481573 -114452
-143293 -909698
-188793 -835029
-368557 -415082...

output:

1147482388.200333762331866
27.055180841584491

result:

ok 2 numbers

Test #33:

score: 0
Accepted
time: 6296ms
memory: 3844kb

input:

200
1000
598099 -707590
-941332 986389
5924 437220
50660 372206
-2232 484704
714086 -980976
-43837 532989
508536 -466519
-628392 976403
172620 189199
607743 -717828
-246520 756652
526210 -527203
710937 -988627
-154755 656534
-583701 998460
-176700 691814
-631576 986748
364647 -162636
-294261 797353
...

output:

453829535.325578774354653
692823.500412556639674
64.576379143357202
2231952899.824395932722837
63034407.127228032146377
3647385879.138069929089397
6.224858242871971
186588789039.774531155824661
110362170.282934319671767
159530.720725878371312
126663613121.635308668017387
22305462784.727991681545973
...

result:

ok 200 numbers

Test #34:

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

input:

20
10000
-18780 765100
-16479 784796
-91618 222362
-321261 -464328
-98405 179720
-118075 63905
-292267 -463429
-476200 -48911
-9084 849233
-245457 -409691
-584219 659685
-60673 433871
-309507 -467014
-340866 -450884
-284189 -458835
-110342 108100
-361323 -424772
-224549 -364719
-151040 -104483
-1817...

output:

4763.882563822324305
639149.966350646970625
242.823109604734140
59436543748.128842610865831
4270273352.019466873025522
67629.093012434686152
11.852466825812025
55864092542.105381228029728
640493117912.886214613914490
20.454042481689247
126703.779335319900667
119.554039134412494
268005677896.11332502...

result:

ok 20 numbers

Test #35:

score: 0
Accepted
time: 6325ms
memory: 7204kb

input:

2
100000
667236 867053
647992 281838
609793 -886361
669939 974744
632726 -227234
-932814 -95833
656494 508904
-931761 -101283
-920106 -475126
615659 -694328
-915575 -573803
-946181 317231
-929371 -157155
-929775 -165768
-942491 232024
-949438 402454
-957596 690336
-956627 664321
661259 652248
-91611...

output:

1150380510.861950603895821
1299086484.228275548899546

result:

ok 2 numbers

Test #36:

score: 0
Accepted
time: 125ms
memory: 3780kb

input:

1000
1
245453 -824575
1
-197246 459584
1
-77058 815906
1
955295 986048
1
-585478 -968190
1
841394 57242
1
31072 99690
1
-78510 -741530
1
-154867 214579
1
-457213 -295148
1
43615 356233
1
-726485 152984
1
617038 252507
1
-109879 -116490
1
784366 340245
1
-174472 452792
1
-320241 156688
1
310604 55116...

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 1000 numbers

Test #37:

score: 0
Accepted
time: 178ms
memory: 3720kb

input:

1000
2
837672 609450
787258 -294767
2
-693446 -190985
578578 -816820
2
-614596 -59091
294336 20778
2
304609 676004
920176 -533309
2
664878 -452235
64349 568651
2
-563942 -237278
-848305 -535691
2
-80676 -348564
-709683 589367
2
-247490 201794
536850 492292
2
495278 -704083
-112641 430391
2
367097 -4...

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 1000 numbers

Test #38:

score: 0
Accepted
time: 215ms
memory: 3784kb

input:

1000
3
-570109 -991378
708540 -14266
690167 732422
3
-734917 -591316
419510 850008
712427 -44056
3
480071 217466
16935 709765
449771 -84197
3
585910 467300
856872 36286
-872052 747264
3
-750019 -921263
592440 260371
720656 -34731
3
283023 433718
-660833 -628076
429263 407689
3
352092 -408368
547767 ...

output:

0.000000000000000
0.000000000000076
0.000000000000001
0.000000000000094
0.000000000000004
0.000000000000011
0.000000000000001
0.000000000000018
0.000000000000038
0.000000000000187
0.000000000000066
0.000000000000071
0.000000000000013
0.000000000000004
0.000000000000010
0.000000000000003
0.0000000000...

result:

ok 1000 numbers

Test #39:

score: 0
Accepted
time: 229ms
memory: 3832kb

input:

1000
4
120184 -522502
-335327 196533
73779 690679
-48411 -394182
4
-644460 -240894
165369 -80520
-281244 891853
50473 -18791
4
206293 283841
-892530 394320
-715834 407924
69350 30219
4
552269 -487482
957785 966227
723653 861670
994344 -491931
4
84983 -523699
34389 -678235
337086 -436448
544394 36516...

output:

327393699392.291600704193115
37531261813.482860203832388
8874485904.096405328251421
212493502985.647659361362457
7250999080.495904705021530
20488573849.846068134531379
23311394774.256084987893701
99807117862.604390606284142
23062617866.303236750885844
38678994544.616935208439827
446620731881.5280016...

result:

ok 1000 numbers

Test #40:

score: 0
Accepted
time: 247ms
memory: 3880kb

input:

1000
5
712404 -123329
551103 -557818
-444534 677308
-425128 -168678
-645206 668205
5
-381689 -145355
957441 433315
84010 -845421
-8814 -382972
-370969 -741883
5
704980 -185588
-52471 -686827
819704 -25330
357980 637232
-308202 625145
5
670814 -452431
-36276 -447692
-388856 235841
-614697 598694
5410...

output:

152585381702.988798677921295
85161480852.085446499288082
364999857514.736116439104080
38193794255.523225583136082
442592874023.338764458894730
674011877106.777895092964172
248849198288.619213253259659
41402592568.833658680319786
143358726694.928256392478943
160126916159.771185919642448
91101172575.8...

result:

ok 1000 numbers

Test #41:

score: 0
Accepted
time: 382ms
memory: 3848kb

input:

1000
10
719749 300237
450883 20532
-678730 -219264
464946 -623294
860001 669923
-740634 695666
-30508 -154290
711207 870176
77794 -897832
-501417 -86445
10
303746 -867968
592742 337531
57277 435153
266565 -71540
-353681 -318147
-306074 74757
-294888 950911
-629552 797293
919148 -373377
-979009 83731...

output:

210103325229.635257631540298
444176313518.815476685762405
506247807424.813719749450684
354780679482.405775994062424
539970632520.302557468414307
249634350280.630399122834206
571102826160.054919362068176
94682708939.363452926278114
394956981249.219089448451996
548759596132.580880224704742
42530515873...

result:

ok 1000 numbers

Test #42:

score: 0
Accepted
time: 3069ms
memory: 3792kb

input:

1000
100
503940 892207
-360030 127313
847901 620477
-119975 485357
949391 -85679
740004 570364
540289 -514498
-788110 -550152
416862 -170936
-510399 -85009
-438471 147817
-820344 -419709
-788887 268568
601194 -463858
-489457 -271701
-702681 -677706
581714 -98124
621839 -87515
-596490 -406601
390610 ...

output:

832396317047.018135905265808
908077635051.921618640422821
936028198571.546291649341583
949110704399.638860046863556
937906309420.802378833293915
952314657587.269230365753174
878145042402.463457643985748
936442232024.648950219154358
949072984456.956684827804565
960108790192.019713640213013
8696322010...

result:

ok 1000 numbers

Test #43:

score: 0
Accepted
time: 6289ms
memory: 3924kb

input:

20
10000
-70357 850317
169057 860123
-76514 365758
367451 -811104
455070 -974302
-849725 -438852
471078 444337
165323 383392
-955469 -385190
-923101 -943035
822734 820483
481472 -196437
605011 422553
-407637 417395
147682 623919
212276 -652188
54592 34985
-915359 -741686
-706038 559876
756062 94848
...

output:

998335142645.603644251823425
999524805668.746474564075470
999251785658.765970647335052
999071955797.374170184135437
999838447779.584033370018005
999794592809.838839292526245
999777663877.095784246921539
999731012368.913059532642365
999091893506.892311215400696
999806895467.907887935638428
9995800301...

result:

ok 20 numbers

Test #44:

score: 0
Accepted
time: 6320ms
memory: 7252kb

input:

2
100000
-881270 -944828
758910 763086
-633064 439558
456841 433295
-931368 900398
686221 166089
971762 -975992
-460757 -889713
699 -285680
432758 -962102
374796 91613
572086 -391394
-193285 30235
491439 -472937
-248925 -128543
990805 298778
271131 86955
632227 161868
663581 -201111
835276 543619
-6...

output:

999917382510.421724379062653
999942779321.019153892993927

result:

ok 2 numbers

Test #45:

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

input:

20
10000
-425094 847211
-767600 257206
963661 16874
-198525 302520
735571 -382082
73682 -517571
668211 -172051
-925579 35046
-26783 -385936
-318416 509908
-969046 59168
849510 -162900
-531191 -757703
900779 -95896
-569364 16362
-388794 289214
-274404 -634358
946191 -404712
-666538 562872
762366 -158...

output:

999147486723.571993947029114
999757756670.727963805198669
998942975304.869961321353912
999598229269.278430402278900
998849702270.995045721530914
999569489549.882496595382690
999823989390.888494133949280
998831139698.676074385643005
999198313197.971781373023987
999131611645.542159795761108
9997246379...

result:

ok 20 numbers

Test #46:

score: 0
Accepted
time: 6321ms
memory: 7220kb

input:

2
100000
-172784 17214
787403 -903054
-558038 90674
856014 -453082
-748941 -507384
-390374 87370
134043 407622
448342 761942
-64136 650351
-25780 490841
583018 365150
-94728 -357856
768587 849980
-102072 48624
-965970 -736101
-547043 -759821
-57865 452464
-569447 527213
-331771 -267817
-123570 22008...

output:

999950865684.033897995948792
999918261435.796958327293396

result:

ok 2 numbers

Test #47:

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

input:

20
10000
255021 844104
226042 591067
101909 731214
200648 -555486
-18780 210137
-933209 438563
893715 246413
-16479 -341671
-91618 -415054
257898 -37150
-760824 -702148
182696 905489
332607 62042
-727584 425665
-321261 472027
73358 -769385
431453 667930
709666 -39367
338111 496166
-98405 552342
4234...

output:

999570511629.749107480049133
998784608815.636201977729797
999198703255.515565514564514
998727089694.144905686378479
999060441264.595715105533600
999711967923.808359086513519
999867916998.245875835418701
998877073732.600074768066406
999220250945.063083469867706
999379384042.661608040332794
9995529180...

result:

ok 20 numbers

Test #48:

score: 0
Accepted
time: 6329ms
memory: 7276kb

input:

2
100000
507332 979256
-247328 494029
580211 706940
-675111 -345939
-468440 154539
602736 -956497
359547 826086
294218 385225
-100600 649605
-484319 908932
889314 540612
273310 -324319
667236 634873
171492 -464667
316985 -280435
851887 181581
647992 719899
257252 -72591
-292271 671957
-984341 931410...

output:

999886167158.554809570312500
999942316699.231159925460815

result:

ok 2 numbers