QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#180660#3003. Cost of LivingsdoiAC ✓601ms19108kbC++144.2kb2023-09-16 03:34:192023-09-16 03:34:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 19ms
memory: 5180kb

input:

10 100 1000
1.4232425477
1.4587468547
1.4988380864
1.4232605904
1.4616348675
1.4896779426
1.4308848629
1.4737913284
1.4757245744
6.5778960564 1.5393071490 4.3707126564 3.6695325734 2.3650352685 2.8394679709 1.3411604400 9.3106822560 6.3826766975 9.5128884762 7.6533007241 3.9582086668 3.5031379898 6....

output:

6.57789606
1.53930715
4.37071266
3.66953257
2.36503527
2.83946797
1.34116044
9.31068226
6.38267670
9.51288848
7.65330072
3.95820867
3.50313799
6.79241864
7.84444494
5.68785574
9.79810754
6.83241783
3.59609594
1.21323999
8.62241361
3.98143245
3.18024085
5.85380577
9.15968852
6.98505417
3.23504245
7.1...

result:

ok 1000 numbers

Test #2:

score: 0
Accepted
time: 364ms
memory: 14896kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 999984.9915250402 999927.5728325787 999990.6803247513 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 999909.1348272597 -1.0000...

output:

34695.64681000
114941.46274630
16078.29899123
517203.34936904
842775.93618161
88002.31594094
177756.71770954
538943.10565159
825613.81036637
291565.17355445
195902.27034279
999917.41844886
572409.56625179
62638.72214908
999924.31900767
407778.46641442
999978.26190585
4747.23952458
71574.03439308
263...

result:

ok 700 numbers

Test #3:

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

input:

4 4 1
-1
-1
-1
5.00 -1 5.00 -1
-1 -1 -1 -1
10.00 -1 10.00 -1
-1 -1 11.00 -1
1 4

output:

11.00000000

result:

ok found '11.00000', expected '11.00000', error '0.00000'

Test #4:

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

input:

4 4 8
1.1526548258
1.3314092554
1.0836964938
-1.0000000000 -1.0000000000 -1.0000000000 3.0796000590
4.0215499785 7.3420629650 4.0491125763 3.9906580185
7.3946475528 -1.0000000000 -1.0000000000 -1.0000000000
-1.0000000000 41.6296254448 6.7385283248 -1.0000000000
3 3
1 1
1 4
3 1
4 4
2 1
4 3
2 3

output:

5.78981126
2.52628161
11.06719558
3.27090247
7.27722148
3.21318886
5.97319928
19.37814743

result:

ok 8 numbers

Test #5:

score: 0
Accepted
time: 401ms
memory: 16332kb

input:

10 100 800
1.0521634367
1.1729602789
1.1306073452
1.2084144349
1.0078862583
1.1225242003
1.0771205309
1.1964754687
1.3075271282
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 2.6116023550 3.8020605784 -1.0000000000 1.1923112759 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000...

output:

7.34738592
3.65913903
23.57585577
17.26700285
6.32520600
1283.60112241
2075.05035062
4.51791572
809.56288131
610.06807949
3.59603187
7.39711462
26.05225201
14.53905604
131.67170330
301.15814469
5.88460845
361.05407982
316.14138826
49.92798098
28.99893820
3.75926587
25.30892578
11.98280039
404.392101...

result:

ok 800 numbers

Test #6:

score: 0
Accepted
time: 390ms
memory: 16132kb

input:

10 100 800
1.2899791474
1.3915779601
1.3485588348
1.1594621188
1.0920622916
1.1565222542
1.0587715090
1.2046496522
1.1064292921
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 1.0510368784 3.2247427692 -1.000...

output:

2.76396403
5.73262975
6.13216977
28.64337787
18.47345818
900.10843276
21237.07624756
5.69030696
6253.04625063
4.49582714
16.83335700
151.29898498
24.69408779
528.71366638
304.83592046
25.14769573
54.16155538
89.96297496
1473.23168617
527.23933100
548.63579427
4323.07536884
4692.85173726
47.97519602
...

result:

ok 800 numbers

Test #7:

score: 0
Accepted
time: 399ms
memory: 16368kb

input:

10 100 800
1.2335580178
1.1412549423
1.2636981872
1.0526410525
1.4674476261
1.0958246554
1.0466222670
1.2130025095
1.4887983698
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 4.1485663392 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 1.227...

output:

29176.03811423
482.30720669
5183.69830020
15.81909367
10.49890322
100.30401140
176.95547509
1715.53862428
8.39484221
1278.86004315
1888.47695025
21639.76154238
16.34925244
7.43705861
226.80580689
1.55228941
386.09799952
121.40353571
18.24595319
4288.05389619
186.33453823
24.82836087
8.07495521
4.343...

result:

ok 800 numbers

Test #8:

score: 0
Accepted
time: 406ms
memory: 16340kb

input:

10 100 800
1.3175894920
1.2377319458
1.4641933114
1.3503200115
1.1285925026
1.4815063735
1.0789026817
1.1885103209
1.3966339158
1.1869655041 -1.0000000000 4.6015195578 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.000...

output:

560.00043605
336.44114810
7556.97018505
7.05270144
784.04932838
3113.51214178
5552.21717931
8.98541132
62.19032201
12084.37250028
1.42999751
13337.58297296
36.50542149
21618.98395137
69.57388543
2.46277212
3.30261281
7174.32075319
67.76843238
1413.10392755
21.02683874
68.97272394
1061.29937135
1980....

result:

ok 800 numbers

Test #9:

score: 0
Accepted
time: 396ms
memory: 16368kb

input:

10 100 800
1.0229245005
1.2237172315
1.3135991079
1.3393777895
1.2020081719
1.4538382518
1.4322652821
1.4068822581
1.0466032669
-1.0000000000 -1.0000000000 3.5573212846 2.4303986142 4.8018918640 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 2.2404459367 -1.00000...

output:

6.71834733
117.15284853
1537.29743298
19.24549505
516.45933329
45.66269387
28.64045660
601.45160242
5.06912851
3.19161926
8.91429502
1238.63539583
727.80609356
63.01136366
19380.62625187
7.61866327
17304.61621579
4.67573216
4577.35537499
21.25801391
2.02873898
124.70548595
25390.63561714
1572.707977...

result:

ok 800 numbers

Test #10:

score: 0
Accepted
time: 395ms
memory: 16208kb

input:

10 100 800
1.2776330738
1.3262397787
1.0936173086
1.2506250361
1.2400873318
1.1721111311
1.2246621786
1.3638339615
1.1735227970
2.3274523768 -1.0000000000 -1.0000000000 -1.0000000000 3.1624258566 -1.0000000000 4.8259576984 -1.0000000000 2.0694932933 -1.0000000000 -1.0000000000 -1.0000000000 -1.00000...

output:

14.86723993
159.00686703
172.22038500
4.41428298
2167.67702904
14.49053517
8537.90447542
28170.34152508
12.14615140
6.56804220
3.61982046
2023.13714750
23.45561804
23.56696973
988.71424590
23.44637884
4.29119678
1.17984843
556.27144374
17936.62900399
418.59070336
324.75152671
173.63443397
21.9757551...

result:

ok 800 numbers

Test #11:

score: 0
Accepted
time: 399ms
memory: 16144kb

input:

10 100 800
1.2713921167
1.3589950021
1.4646596382
1.0268993278
1.3347254135
1.1409169610
1.4976473069
1.1611135028
1.3759583622
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 4.3875847073 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.00...

output:

13.40801972
139.17875173
19113.06920776
4.20383077
13395.28261084
1061.95956356
2.10855049
3788.72026147
17.00852215
40.43628086
91.21836632
2356.51347150
1.00890911
5.59582375
2.43044453
9.91978433
3145.71287850
992.93027574
3.51283231
4.63612278
10128.87466275
11.68610452
6.22859298
63.09487074
30...

result:

ok 800 numbers

Test #12:

score: 0
Accepted
time: 390ms
memory: 16204kb

input:

10 100 800
1.0501988692
1.0457193911
1.2072818261
1.1134012252
1.1453399136
1.2696923791
1.3947999503
1.1505678861
1.0705078222
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 4.9872342708 -1.0000000000 -1.0000000000 -1.0000000000 3.2735632693 -1.000...

output:

5.49331557
36.41780543
8.98910233
13.28842189
825.51032895
2478.08402605
10.20301269
14.84208538
335.27434042
4662.97440643
11145.19309061
1.33387776
2.73242718
31.03333992
8714.20158674
35.32642240
844.46803110
61.67804598
1020.43316535
2.37046901
13.09870281
118.13283602
1539.46867757
2.32023400
9...

result:

ok 800 numbers

Test #13:

score: 0
Accepted
time: 385ms
memory: 16216kb

input:

10 100 800
1.1379620977
1.4484034825
1.0543961923
1.4376887816
1.4408356074
1.4038140736
1.2288980916
1.0276153023
1.1431729363
2.3050825918 -1.0000000000 -1.0000000000 -1.0000000000 1.6669517279 4.5758080971 -1.0000000000 -1.0000000000 1.0842605202 -1.0000000000 4.1978620846 -1.0000000000 -1.000000...

output:

903.55485337
388.86213608
10884.09001451
245.87855238
240.30210494
24.10564545
45.34469125
531.98496062
61.20189279
14221.62913705
5.91695261
11567.63875102
22155.24665618
331.40738888
2.78437161
69.11777214
172.60032326
5286.61602326
6.59435024
39.52745514
40.83350934
9.18321351
38.80172832
9435.19...

result:

ok 800 numbers

Test #14:

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

input:

6 4 24
-1
-1
1
1
1
-1 2 -1 -1
-1 -1 -1 -1
2 -1 -1 -1
-1 2 -1 -1
-1 2 -1 -1
2 -1 -1 -1
1 1
2 1
3 1
4 1
1 2
2 2
3 2
4 2
1 3
2 3
3 3
4 3
1 4
2 4
3 4
4 4
1 5
2 5
3 5
4 5
1 6
2 6
3 6
4 6

output:

2.00000000
2.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
2.00000000
2.00000000
-1.00000000
-1.00000000
2.00000000
2.00000000
-1.00000000
-1.00000000
2.00000000
2.00000000
-1.00000000
-1.00000000
2.00000000
2.00000000
-1.00000000
-1.00000000

result:

ok 24 numbers

Test #15:

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

input:

10 4 40
-1
-1
-1
-1
-1
1
1
1
-1
-1 -1 -1 -1
2 2 -1 2
-1 -1 -1 -1
2 2 -1 -1
-1 -1 -1 -1
2 -1 -1 -1
-1 2 -1 -1
-1 -1 -1 -1
-1 -1 -1 2
-1 -1 -1 -1
1 1
2 1
3 1
4 1
1 2
2 2
3 2
4 2
1 3
2 3
3 3
4 3
1 4
2 4
3 4
4 4
1 5
2 5
3 5
4 5
1 6
2 6
3 6
4 6
1 7
2 7
3 7
4 7
1 8
2 8
3 8
4 8
1 9
2 9
3 9
4 9
1 10
2 10
3 ...

output:

-1.00000000
-1.00000000
-1.00000000
-1.00000000
2.00000000
2.00000000
-1.00000000
2.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
2.00000000
2.00000000
-1.00000000
2.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
2.00000000
2.00000000
-1.00000000
2.00000000
2.00000000
2.00000000...

result:

ok 40 numbers

Test #16:

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

input:

6 4 24
-1
-1
-1
-1
-1
-1 2 2 -1
-1 2 -1 -1
-1 -1 -1 2
2 2 -1 -1
2 -1 2 -1
2 -1 2 -1
1 1
2 1
3 1
4 1
1 2
2 2
3 2
4 2
1 3
2 3
3 3
4 3
1 4
2 4
3 4
4 4
1 5
2 5
3 5
4 5
1 6
2 6
3 6
4 6

output:

2.00000000
2.00000000
2.00000000
-1.00000000
2.00000000
2.00000000
2.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
2.00000000
2.00000000
2.00000000
2.00000000
-1.00000000
2.00000000
2.00000000
2.00000000
-1.00000000
2.00000000
2.00000000
2.00000000
-1.00000000

result:

ok 24 numbers

Test #17:

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

input:

6 2 12
-1
-1
-1
-1
-1
2 -1
2 -1
2 -1
-1 2
-1 2
-1 2
1 1
2 1
1 2
2 2
1 3
2 3
1 4
2 4
1 5
2 5
1 6
2 6

output:

2.00000000
-1.00000000
2.00000000
-1.00000000
2.00000000
-1.00000000
-1.00000000
2.00000000
-1.00000000
2.00000000
-1.00000000
2.00000000

result:

ok 12 numbers

Test #18:

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

input:

10 1 10
-1
-1
-1
-1
1
1
1
1
1
-1
-1
-1
-1
-1
-1
-1
128
256
-1
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10

output:

-1.00000000
-1.00000000
-1.00000000
-1.00000000
16.00000000
32.00000000
64.00000000
128.00000000
256.00000000
512.00000000

result:

ok 10 numbers

Test #19:

score: 0
Accepted
time: 369ms
memory: 14928kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 999981.3062264143 999903.4478394005 9...

output:

999929.99249679
999903.44783940
999987.32165190
999929.99249679
999933.17128734
999992.48353054
999927.19492711
999936.90673755
999995.03218416
999962.77760077
999908.18140669
999946.88118123
999937.80938653
999933.40871274
999916.19074484
999907.79772172
999935.36720373
999925.60625588
999927.88968...

result:

ok 700 numbers

Test #20:

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

input:

4 4 4
-1.0000000000
-1.0000000000
-1.0000000000
1.8928429526 -1.0000000000 -1.0000000000 -1.0000000000
2.8237713441 8.5031341337 5.1105589373 8.0067820072
-1.0000000000 14.0582533008 5.4057455625 10.7656273636
4.1557987046 26.1121938963 6.4239546067 16.2622392308
3 1
1 3
4 1
2 1

output:

3.70679795
3.23193177
4.56871827
3.94588486

result:

ok 4 numbers

Test #21:

score: 0
Accepted
time: 349ms
memory: 14980kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 4.4468276012 3.3094085810 -1.0000000000 -1.0000000000 1.9115931026 -1.0000000000 -1.000000000...

output:

10.87617750
452.62844692
249.78497347
18.25063382
54.25221219
5.73037307
10.66913386
394.27826246
14.14579244
2.81489483
1470.23361969
4.51203840
8.66226577
650.55855460
108.06344159
196.52590773
42.06944007
18.91445365
38777.69410264
66.64436981
2.79596492
3.18854534
3.89155357
5816.40188750
523.81...

result:

ok 700 numbers

Test #22:

score: 0
Accepted
time: 398ms
memory: 14976kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 1.7599370304 -1.0000000000 3.8881524183 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.00000000...

output:

52.07726743
135.28131241
254.86386918
591.60752215
7.63329544
1.19854177
109.82713148
26.47686030
239.81324766
4.42668219
16669.78387784
301.73054164
19.51290023
8999.62608919
8826.37430574
161.59150315
2.07424797
166.86081600
19.98698058
109.48473406
19090.22369281
47.17732199
12.07733125
11.425690...

result:

ok 700 numbers

Test #23:

score: 0
Accepted
time: 365ms
memory: 14924kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 1.0901945854 -1.0000000000 -1.0000000000 3.6862311053 -1.0000000000 3.0471500872 -1.000000000...

output:

42.32635054
222.10104621
5.47425617
14.90066404
7.56858534
260.51021710
6.67914155
2334.45375128
234.94550664
8.65700140
5.81089164
64.72679725
18.43621640
7.12654021
4.48643209
6631.81976397
1405.85897706
9.68449484
10.38498236
3052.08843446
12.34063626
83.37447333
9031.14919579
4.64841848
13.91546...

result:

ok 700 numbers

Test #24:

score: 0
Accepted
time: 359ms
memory: 14960kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 2.2548748007 4.7362238853 -1.0000000000 2.1204692893 2.4533130632 1.3569169662 1.7167450103 -1.0000000000 -...

output:

30.69625547
5.25845253
7.90055099
453.64955445
13.84281038
36.20292900
9.22575133
1019.78704356
9.98108360
95477.87333887
14.47525961
11.68258731
1757.09757629
501.45656241
438.57478319
36024.26747704
155.26351590
3498.60858463
1779.66576036
292.98461634
6.38544100
1394.88428071
1.15837057
1206.3703...

result:

ok 700 numbers

Test #25:

score: 0
Accepted
time: 363ms
memory: 15072kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 4.8362270584 -1.0000000000 -1.0000000000 4.6038264788 -1.0000000000 -1.0000000000 2.8720165885 -1.0000000000 4.7525733203 1.0014144503 -1.0000000000 ...

output:

18.91895548
4509.57999451
1.41044884
2476.01978828
7.91451957
4450.88333303
10.59751859
20.61538840
21.81638433
3492.58282085
56.83612044
537.95991480
473.62024968
875.21451527
4567.26414405
4237.00279917
14523.76368628
53.82780150
3252.92615630
53.04801698
3.65172010
17935.26136560
198.74744433
185...

result:

ok 700 numbers

Test #26:

score: 0
Accepted
time: 356ms
memory: 14932kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 1.1808166722 -1.0000000000 -1.0000000000 -1.0000000000 2.1799998719 -1.0000000000 -1.0000000000 3.474584851...

output:

4.34676012
12.13065274
6.87974568
15.56286790
55.79506187
253.10440493
6.59203289
2.46656965
68.89339680
2.55459143
114.87854312
243.40235079
3.63521520
2240.38288207
248.92174420
10.25859014
1.71917038
4715.69648257
4422.65244826
17.06186941
501.57094062
1.33427153
9.26736417
4.40740312
10.49432566...

result:

ok 700 numbers

Test #27:

score: 0
Accepted
time: 366ms
memory: 15028kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
4.3649542456 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 4.5636989486 -1.0000000000 3.8017048357 -1.0000000000 -1.0000000000 -1.0000000000 2.5748655606...

output:

1390.81882373
565.43361388
301.47985820
20.31704148
25.14612049
112.80954127
3.74119190
11.83736970
1049.95897043
1682.47946961
30.31064399
79.62111228
724.46396321
85.46754713
1.80405279
12.82639129
8.70877070
66.72514112
526.02048733
8.25541362
92.17313069
11.56210711
37335.84155264
622.37125321
3...

result:

ok 700 numbers

Test #28:

score: 0
Accepted
time: 364ms
memory: 15044kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 1.6710908486 -1.0000000000 1.1629480169 4.2383499853 -1.0000000000 4.2214426199 2.3762098507 -1.0000000000 1.4540884083 -1.0000000000 -...

output:

802.18667782
94.48247287
11.22888808
7.97544813
255.41193664
44.74012586
62.37220617
96.09037254
34.94764754
672.29703591
2917.21918655
18.76837985
3.01717457
383.74155058
4.94207764
124.50544531
11.68874702
13.40114810
5.96733891
99.15418456
155.38938224
1.48979539
7029.79902228
5.91239506
4.630694...

result:

ok 700 numbers

Test #29:

score: 0
Accepted
time: 361ms
memory: 14960kb

input:

10 100 700
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 2.0719063417 -1.0000000000 -1.0000000000 -1.0000000000 4.1270212263 3.8181242083 4.7440500035 -1.0000000000 -1.0000000000 -1.0000000000...

output:

6.40931482
906.09968669
6138.68351498
2.73938594
13.08070324
5.60032857
271.14647807
25.06215231
51.32351186
1.80282946
1623.85972975
7.87957418
7.88353755
61.99378123
153.95512341
17.42566946
19.55886606
4.40594924
1661.52959779
21.69500344
206.08990995
132.55031799
36.35209661
38.62752619
499.5610...

result:

ok 700 numbers

Test #30:

score: 0
Accepted
time: 601ms
memory: 19108kb

input:

10 100 1000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.00000...

output:

-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
...

result:

ok 1000 numbers

Test #31:

score: 0
Accepted
time: 130ms
memory: 9472kb

input:

10 100 300
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 2.9677417732 5.5481975929 1.2388237272 2.7895388562 6.8489599400 5.9044733254 -1.0000000000 -1.0000000000 8.2848741101 -1.0000000000 8.2523732665 7.2...

output:

215.66523669
3.72842192
6.76865619
740.75879035
24.44569035
52115.52800483
4079.00141874
343.92544233
13469.09392311
19217.57193792
189.16189664
39.63183141
4.59460455
762.21484386
5.08351336
34.72269558
70936.78701488
162.08417514
183.03112075
593.99734798
71.11150510
21221.80242958
6249.53885374
2...

result:

ok 300 numbers

Test #32:

score: 0
Accepted
time: 187ms
memory: 10564kb

input:

10 100 400
-1.0000000000
1.4274480380
-1.0000000000
-1.0000000000
1.4744668841
-1.0000000000
-1.0000000000
-1.0000000000
1.4904155291
3.5757473631 8.1897410756 -1.0000000000 -1.0000000000 -1.0000000000 6.5880204682 -1.0000000000 -1.0000000000 6.9326338629 8.5450340527 -1.0000000000 -1.0000000000 6.8...

output:

51112.56515640
2459.00859475
185.78609777
151196.33541673
25.78723422
406.54294022
214.91893914
9064.19487969
121.50279688
47.16427235
440.47859183
11.29285985
45.11800741
-1.00000000
6.05266644
17.28975180
24.92468945
272.73292939
6.57097099
13.50862074
49.57931029
69.68179212
3.73928126
3445.61569...

result:

ok 400 numbers

Test #33:

score: 0
Accepted
time: 234ms
memory: 11808kb

input:

10 100 500
-1.0000000000
1.4134092751
1.4242858516
1.4203336733
1.4646705852
-1.0000000000
1.4847133386
1.4092463997
-1.0000000000
-1.0000000000 3.4161542907 7.0630472857 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 7.5187471587 -1.0000000000 5.3145478582 8.8252646637 3.9966787974 -1.0000...

output:

-1.00000000
-1.00000000
-1.00000000
38.93100273
8.50026444
10.22390395
513.45743728
7.44915658
270.91768953
6317.85205266
129.04258200
67459.85747360
783.28753248
-1.00000000
-1.00000000
15644.10384939
1091.10759918
-1.00000000
123.06754388
132.19937109
911.40939816
108.07190264
437.38217438
12.6823...

result:

ok 500 numbers

Test #34:

score: 0
Accepted
time: 300ms
memory: 13216kb

input:

10 100 600
-1.0000000000
1.4222706523
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 6.8803570282 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 6.4378294846 -1.0000000000 3.7413816229...

output:

2071.75143833
-1.00000000
20.94160106
-1.00000000
45460.59726534
-1.00000000
2730.30442211
51241.58394681
31.15728186
-1.00000000
13554.79560958
33627.46401639
16.75877233
-1.00000000
1.81805992
1550.41487603
-1.00000000
51.45752062
56.14834033
-1.00000000
-1.00000000
-1.00000000
29340.83901207
1737...

result:

ok 600 numbers

Test #35:

score: 0
Accepted
time: 346ms
memory: 14608kb

input:

10 100 700
1.4807840691
1.4261252588
1.4700774873
1.4484918514
-1.0000000000
1.4862014428
1.4342847995
1.4084401466
1.4145070252
9.4054766923 2.3873526867 5.4635344801 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 6.7381719985 -1.0000000000 -1.0000000000 4.1056814752 -1.0000000000 -1.00000...

output:

41.74757112
1036.86554546
1049.01070165
-1.00000000
-1.00000000
27316.41680866
7893.09345638
18.84883581
18.75855038
-1.00000000
-1.00000000
3.99389263
330.87983156
-1.00000000
87.34089955
-1.00000000
-1.00000000
-1.00000000
35979.76188672
-1.00000000
853.74028199
-1.00000000
-1.00000000
124.2013441...

result:

ok 700 numbers

Test #36:

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

input:

4 4 5
1.3389137753
1.2453132838
1.4745777478
-1.0000000000 1.6279270129 4.4597430791 3.3655243133
-1.0000000000 4.1559002643 -1.0000000000 6.1753680584
14.3054065549 9.8678221715 28.9725311378 10.5389895251
-1.0000000000 27.7438397589 84.3289704033 -1.0000000000
4 4
1 2
3 2
1 4
1 1

output:

21.29728064
-1.00000000
11.78650742
-1.00000000
-1.00000000

result:

ok 5 numbers

Test #37:

score: 0
Accepted
time: 408ms
memory: 16188kb

input:

10 100 799
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
1.0417332012
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 1.6769048894 -1.00000000...

output:

44.75375952
-1.00000000
1.69115154
-1.00000000
-1.00000000
76.05710805
-1.00000000
-1.00000000
63.77752711
-1.00000000
53.16204166
-1.00000000
-1.00000000
41.20303458
-1.00000000
-1.00000000
-1.00000000
207.68766834
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
4554.3965875...

result:

ok 799 numbers

Test #38:

score: 0
Accepted
time: 407ms
memory: 16212kb

input:

10 100 800
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 3.3116776323 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 4.0812629475 -1.0000000000 -1.00000000...

output:

10.43015973
40.50903787
-1.00000000
-1.00000000
-1.00000000
895.52424347
620.91599498
-1.00000000
374.05741457
-1.00000000
-1.00000000
-1.00000000
4.18259461
-1.00000000
-1.00000000
-1.00000000
106.68658305
107.07920725
-1.00000000
819.49264515
11.71811658
-1.00000000
-1.00000000
-1.00000000
-1.0000...

result:

ok 800 numbers

Test #39:

score: 0
Accepted
time: 379ms
memory: 16280kb

input:

10 100 792
1.4655502165
1.1366001379
1.1035631980
1.0307136632
1.4432255049
1.2609673825
-1.0000000000
1.4254184302
1.2967916824
4.8401049699 1.2258643958 2.8268315927 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 2.9593860382 -1.0000000000 1.7786958166 3.9621935042 -1.000000...

output:

-1.00000000
11.13255937
3470.29643812
2.98288530
-1.00000000
-1.00000000
5427.95607453
-1.00000000
-1.00000000
12.11795372
-1.00000000
50.53319830
106.82407008
3.48002993
2.25091427
29.66412058
-1.00000000
987.37655292
-1.00000000
227.11181235
-1.00000000
-1.00000000
-1.00000000
-1.00000000
5.917676...

result:

ok 792 numbers

Test #40:

score: 0
Accepted
time: 412ms
memory: 16288kb

input:

10 100 800
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
3.3758827143 -1.0000000000 -1.0000000000 -1.0000000000 2.4657513310 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 2.9504286374 2.9641394449...

output:

-1.00000000
-1.00000000
92.69312240
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
23900.31750770
9.28014749
1635.19503773
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
148.23024219
7991.22006710
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00...

result:

ok 800 numbers

Test #41:

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

input:

10 100 793
-1.0000000000
-1.0000000000
1.1058495647
1.4171439424
1.3733467703
1.0547271715
1.2084647978
1.1683697215
1.3287618448
3.4619418449 -1.0000000000 -1.0000000000 3.7680268404 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 3.6895113450 -1.0000000000 -1.0000000000 -1.0000000000 2.229...

output:

-1.00000000
299.93743375
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
16.92120215
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000...

result:

ok 793 numbers

Test #42:

score: 0
Accepted
time: 411ms
memory: 16444kb

input:

10 100 796
1.0531446023
-1.0000000000
1.0186246091
1.0350047232
-1.0000000000
1.1037101466
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 2.4434727517 -1.0000000000 -1.0000000000 3.1434137308 -1.0000000000 3.9004131477 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 3....

output:

-1.00000000
-1.00000000
11.85421749
2.43119471
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
1.92958260
2.96148677
20.40569631
-1.00000000
10.09562730
-1.00000000
3.92289801
1882.55018527
406.91453781
3.71200105
-1.00000000
12.49903605
80...

result:

ok 796 numbers

Test #43:

score: 0
Accepted
time: 410ms
memory: 16168kb

input:

10 100 799
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
1.3139944530
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 3.5705709729 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.00000000...

output:

13.05253831
-1.00000000
1147.06760480
123.11123480
2.17914202
1165.96423636
-1.00000000
-1.00000000
484.64493180
121.38836513
-1.00000000
-1.00000000
8.73387133
-1.00000000
8.17181679
-1.00000000
482.18054485
788.00358357
-1.00000000
-1.00000000
71.01965347
36.15871362
4.17581964
-1.00000000
-1.0000...

result:

ok 799 numbers

Test #44:

score: 0
Accepted
time: 395ms
memory: 16500kb

input:

10 100 798
1.1380052780
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
1.1568359591
-1.0000000000
4.0757491018 -1.0000000000 -1.0000000000 1.4319198930 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 2.8003678023 3.1546478531 3...

output:

116.98948293
-1.00000000
-1.00000000
1570.88377917
-1.00000000
11.30683488
22.66358420
-1.00000000
-1.00000000
8.41310986
-1.00000000
104.17044163
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
28075.97982515
13.62294343
-1.000...

result:

ok 798 numbers

Test #45:

score: 0
Accepted
time: 385ms
memory: 16012kb

input:

10 100 791
1.1787459246
1.3922470978
1.1151446200
1.1925113501
1.3939072649
1.4397895392
1.1010497913
1.3784205494
1.4928830754
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 3.1841543266 -1.0000000000 3.0738497347 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.000...

output:

-1.00000000
-1.00000000
6.33958871
67.83519137
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
11385.52411170
-1.00000000
770.62577180
-1.00000000
-1.00000000
-1.00000000
32.93360410
-1.00000000
-1.00000000
-1.00000000
-1.00000000
18.94310686
-1.00000000
7.44277539
5.22404931
1.81085896
...

result:

ok 791 numbers

Test #46:

score: 0
Accepted
time: 405ms
memory: 16120kb

input:

10 100 799
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
1.4432609112
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 8.2785518545 3.4829212847 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 8.7727208263...

output:

-1.00000000
-1.00000000
20.01895109
-1.00000000
-1.00000000
-1.00000000
158.11131803
-1.00000000
-1.00000000
-1.00000000
-1.00000000
17302.80755441
5259.71687065
266.13125086
-1.00000000
660.87677641
12420.08176354
6.34904217
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1.00000000
-1...

result:

ok 799 numbers

Test #47:

score: 0
Accepted
time: 413ms
memory: 16464kb

input:

10 100 799
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
1.4945916321
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 -1.0000000000 4.2176774528 -1.00000000...

output:

-1.00000000
117.05027644
1458.10175021
-1.00000000
-1.00000000
-1.00000000
16.75754383
-1.00000000
-1.00000000
-1.00000000
58.01102506
-1.00000000
437.35814635
6.54380834
92.07676732
-1.00000000
2594.23142094
-1.00000000
-1.00000000
-1.00000000
10.90808808
-1.00000000
-1.00000000
-1.00000000
-1.0000...

result:

ok 799 numbers

Test #48:

score: 0
Accepted
time: 421ms
memory: 16316kb

input:

10 100 800
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000 4.8583709046 -1.0000000000 7.7675870926 -1.0000000000 -1.0000000000 -1.0000000000 6.0676531577 -1.0000000000 -1.0000000000 -1.0000000000 -1.000000000...

output:

123.72243546
13.52534439
-1.00000000
149.61638260
30.87662933
-1.00000000
2244.39768916
-1.00000000
38.28842020
-1.00000000
-1.00000000
16078.65639750
-1.00000000
-1.00000000
-1.00000000
-1.00000000
10.49137585
196.32385406
16.72973949
8136.16808262
1.82190067
445.41482403
-1.00000000
-1.00000000
-1...

result:

ok 800 numbers