QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#30593#3003. Cost of LivingsmaxAC ✓1208ms20044kbC++232.5kb2022-04-30 08:29:002022-04-30 08:29:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1208ms
memory: 20044kb

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.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.7924186444
7.8444449407
5.6878557364
9.7981075401
6.8324178257
3.5960959401
1.2132399906
8.6224136099
3.9814324534
3.1802408535
5...

result:

ok 1000 numbers

Test #2:

score: 0
Accepted
time: 680ms
memory: 14404kb

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.6468099979
114941.4627463052
16078.2989912268
517203.3493690426
842775.9361816024
88002.3159409445
177756.7177095412
538943.1056515892
825613.8103663387
291565.1735544463
195902.2703427870
999917.4184488930
572409.5662517675
62638.7221490843
999924.3190076784
407778.4664144244
999978.261905895...

result:

ok 700 numbers

Test #3:

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

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.0000000000

result:

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

Test #4:

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

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.7898112603
2.5262816074
11.0671955779
3.2709024735
7.2772214757
3.2131888582
5.9731992802
19.3781474311

result:

ok 8 numbers

Test #5:

score: 0
Accepted
time: 600ms
memory: 13560kb

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.3473859239
3.6591390298
23.5758557709
17.2670028511
6.3252059953
1283.6011224074
2075.0503506161
4.5179157221
809.5628813111
610.0680794943
3.5960318695
7.3971146210
26.0522520052
14.5390560384
131.6717032962
301.1581446892
5.8846084471
361.0540798250
316.1413882625
49.9279809790
28.9989381979
3.7...

result:

ok 800 numbers

Test #6:

score: 0
Accepted
time: 567ms
memory: 13596kb

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.7639640350
5.7326297465
6.1321697697
28.6433778746
18.4734581831
900.1084327571
21237.0762475588
5.6903069643
6253.0462506295
4.4958271382
16.8333569978
151.2989849767
24.6940877916
528.7136663765
304.8359204576
25.1476957340
54.1615553758
89.9629749649
1473.2316861744
527.2393309953
548.635794270...

result:

ok 800 numbers

Test #7:

score: 0
Accepted
time: 574ms
memory: 13576kb

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.0381142282
482.3072066895
5183.6983001983
15.8190936720
10.4989032168
100.3040114045
176.9554750939
1715.5386242794
8.3948422129
1278.8600431542
1888.4769502521
21639.7615423824
16.3492524418
7.4370586141
226.8058068892
1.5522894060
386.0979995220
121.4035357076
18.2459531934
4288.0538961893
1...

result:

ok 800 numbers

Test #8:

score: 0
Accepted
time: 577ms
memory: 13704kb

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.0004360462
336.4411480955
7556.9701850490
7.0527014382
784.0493283756
3113.5121417772
5552.2171793074
8.9854113204
62.1903220142
12084.3725002845
1.4299975133
13337.5829729582
36.5054214937
21618.9839513740
69.5738854287
2.4627721177
3.3026128106
7174.3207531886
67.7684323803
1413.1039275505
21....

result:

ok 800 numbers

Test #9:

score: 0
Accepted
time: 577ms
memory: 13796kb

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.7183473322
117.1528485340
1537.2974329784
19.2454950492
516.4593332866
45.6626938721
28.6404566005
601.4516024218
5.0691285121
3.1916192551
8.9142950235
1238.6353958314
727.8060935594
63.0113636599
19380.6262518724
7.6186632682
17304.6162157873
4.6757321636
4577.3553749860
21.2580139130
2.02873898...

result:

ok 800 numbers

Test #10:

score: 0
Accepted
time: 616ms
memory: 13488kb

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.8672399346
159.0068670317
172.2203849997
4.4142829845
2167.6770290440
14.4905351671
8537.9044754195
28170.3415250840
12.1461513986
6.5680422017
3.6198204643
2023.1371474964
23.4556180358
23.5669697269
988.7142458991
23.4463788369
4.2911967833
1.1798484342
556.2714437364
17936.6290039866
418.59070...

result:

ok 800 numbers

Test #11:

score: 0
Accepted
time: 576ms
memory: 13572kb

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.4080197158
139.1787517300
19113.0692077643
4.2038307697
13395.2826108364
1061.9595635573
2.1085504861
3788.7202614654
17.0085221508
40.4362808553
91.2183663173
2356.5134714954
1.0089091059
5.5958237503
2.4304445269
9.9197843328
3145.7128785000
992.9302757421
3.5128323109
4.6361227774
10128.874662...

result:

ok 800 numbers

Test #12:

score: 0
Accepted
time: 606ms
memory: 13580kb

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.4933155689
36.4178054288
8.9891023301
13.2884218922
825.5103289509
2478.0840260501
10.2030126921
14.8420853813
335.2743404156
4662.9744064274
11145.1930906101
1.3338777646
2.7324271783
31.0333399157
8714.2015867378
35.3264223971
844.4680311000
61.6780459837
1020.4331653497
2.3704690099
13.09870280...

result:

ok 800 numbers

Test #13:

score: 0
Accepted
time: 609ms
memory: 13512kb

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.5548533657
388.8621360767
10884.0900145111
245.8785523789
240.3021049449
24.1056454452
45.3446912474
531.9849606163
61.2018927907
14221.6291370521
5.9169526056
11567.6387510184
22155.2466561779
331.4073888825
2.7843716127
69.1177721427
172.6003232551
5286.6160232645
6.5943502382
39.5274551442
40...

result:

ok 800 numbers

Test #14:

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

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.0000000000
2.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
2.0000000000
2.0000000000
-1.0000000000
-1.0000000000
2.0000000000
2.0000000000
-1.0000000000
-1.0000000000
2.0000000000
2.0000000000
-1.0000000000
-1.0000000000
2.0000000000
2.0000000000
-1...

result:

ok 24 numbers

Test #15:

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

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.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
2.0000000000
2.0000000000
-1.0000000000
2.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
2.0000000000
2.0000000000
-1.0000000000
2.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
2.0000000000
2.0000000000
...

result:

ok 40 numbers

Test #16:

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

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.0000000000
2.0000000000
2.0000000000
-1.0000000000
2.0000000000
2.0000000000
2.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
2.0000000000
2.0000000000
2.0000000000
2.0000000000
-1.0000000000
2.0000000000
2.0000000000
2.0000000000
-1.0000000000
2.0000000000
2.0000000000
2.00000...

result:

ok 24 numbers

Test #17:

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

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.0000000000
-1.0000000000
2.0000000000
-1.0000000000
2.0000000000
-1.0000000000
-1.0000000000
2.0000000000
-1.0000000000
2.0000000000
-1.0000000000
2.0000000000

result:

ok 12 numbers

Test #18:

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

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.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
16.0000000000
32.0000000000
64.0000000000
128.0000000000
256.0000000000
512.0000000000

result:

ok 10 numbers

Test #19:

score: 0
Accepted
time: 670ms
memory: 14588kb

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.9924967996
999903.4478393979
999987.3216518927
999929.9924967854
999933.1712873076
999992.4835305255
999927.1949271219
999936.9067375510
999995.0321841601
999962.7776007713
999908.1814066869
999946.8811812523
999937.8093865283
999933.4087127381
999916.1907448570
999907.7977217180
999935.36720...

result:

ok 700 numbers

Test #20:

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

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.7067979498
3.2319317662
4.5687182709
3.9458848567

result:

ok 4 numbers

Test #21:

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

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.8761774969
452.6284469466
249.7849734654
18.2506338221
54.2522121913
5.7303730743
10.6691338634
394.2782624562
14.1457924391
2.8148948253
1470.2336196986
4.5120383968
8.6622657661
650.5585545859
108.0634415847
196.5259077181
42.0694400683
18.9144536510
38777.6941045229
66.6443698036
2.7959649200
...

result:

ok 700 numbers

Test #22:

score: 0
Accepted
time: 634ms
memory: 14584kb

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.0772674274
135.2813124088
254.8638691950
591.6075221582
7.6332954393
1.1985417722
109.8271314832
26.4768603025
239.8132476614
4.4266821928
16669.7838778386
301.7305416348
19.5129002256
8999.6260891753
8826.3743058269
161.5915031500
2.0742479731
166.8608159993
19.9869805757
109.4847340531
19090.22...

result:

ok 700 numbers

Test #23:

score: 0
Accepted
time: 663ms
memory: 14388kb

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.3263505423
222.1010462321
5.4742561723
14.9006640370
7.5685853430
260.5102171009
6.6791415460
2334.4537512204
234.9455066433
8.6570013954
5.8108916447
64.7267972433
18.4362163956
7.1265402091
4.4864320907
6631.8197639161
1405.8589772801
9.6844948369
10.3849823624
3052.0884344825
12.3406362603
83....

result:

ok 700 numbers

Test #24:

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

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.6962554694
5.2584525314
7.9005509868
453.6495544476
13.8428103764
36.2029289996
9.2257513257
1019.7870435128
9.9810836026
95477.8733393564
14.4752596148
11.6825873065
1757.0975764345
501.4565624161
438.5747831866
36024.2674770382
155.2635158984
3498.6085846426
1779.6657603459
292.9846163424
6.385...

result:

ok 700 numbers

Test #25:

score: 0
Accepted
time: 658ms
memory: 14520kb

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.9189554745
4509.5799967756
1.4104488424
2476.0197883108
7.9145195668
4450.8833331298
10.5975185922
20.6153883972
21.8163843265
3492.5828202988
56.8361204486
537.9599147253
473.6202496732
875.2145153628
4567.2641440977
4237.0027990815
14523.7636851067
53.8278014798
3252.9261566264
53.0480169726
3....

result:

ok 700 numbers

Test #26:

score: 0
Accepted
time: 657ms
memory: 14388kb

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.3467601181
12.1306527382
6.8797456784
15.5628678954
55.7950618750
253.1044049061
6.5920328935
2.4665696511
68.8933967899
2.5545914323
114.8785431215
243.4023507865
3.6352151996
2240.3828819848
248.9217441965
10.2585901372
1.7191703779
4715.6964818681
4422.6524480109
17.0618694088
501.5709405774
1....

result:

ok 700 numbers

Test #27:

score: 0
Accepted
time: 646ms
memory: 14416kb

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.8188237302
565.4336138810
301.4798581973
20.3170414784
25.1461204922
112.8095412742
3.7411918995
11.8373697031
1049.9589704274
1682.4794696137
30.3106439883
79.6211122819
724.4639632109
85.4675471346
1.8040527868
12.8263912861
8.7087707045
66.7251411197
526.0204873319
8.2554136155
92.1731306954...

result:

ok 700 numbers

Test #28:

score: 0
Accepted
time: 650ms
memory: 14384kb

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.1866779965
94.4824728690
11.2288880752
7.9754481334
255.4119366652
44.7401258636
62.3722061653
96.0903725332
34.9476475396
672.2970358586
2917.2191863719
18.7683798455
3.0171745662
383.7415505573
4.9420776368
124.5054453187
11.6887470214
13.4011480992
5.9673389138
99.1541845713
155.3893822159
1....

result:

ok 700 numbers

Test #29:

score: 0
Accepted
time: 676ms
memory: 14552kb

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.4093148172
906.0996866263
6138.6835150367
2.7393859384
13.0807032401
5.6003285712
271.1464780706
25.0621523097
51.3235118559
1.8028294634
1623.8597296282
7.8795741763
7.8835375533
61.9937812307
153.9551234043
17.4256694598
19.5588660582
4.4059492371
1661.5295977918
21.6950034452
206.0899099506
132...

result:

ok 700 numbers

Test #30:

score: 0
Accepted
time: 426ms
memory: 11188kb

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.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.0000000000
-1.000...

result:

ok 1000 numbers

Test #31:

score: 0
Accepted
time: 978ms
memory: 17432kb

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.6652366847
3.7284219240
6.7686561871
740.7587903477
24.4456903541
52115.5280039884
4079.0014186369
343.9254423104
13469.0939230246
19217.5719375591
189.1618966402
39.6318314071
4.5946045462
762.2148438457
5.0835133569
34.7226955824
70936.7870148562
162.0841751376
183.0311207446
593.9973479829
71...

result:

ok 300 numbers

Test #32:

score: 0
Accepted
time: 869ms
memory: 16684kb

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.5651567677
2459.0085948094
185.7860977725
151196.3354190003
25.7872342160
406.5429402167
214.9189391370
9064.1948798368
121.5027968813
47.1642723525
440.4785918263
11.2928598484
45.1180074117
-1.0000000000
6.0526664403
17.2897517981
24.9246894451
272.7329294040
6.5709709936
13.5086207353
49.57...

result:

ok 400 numbers

Test #33:

score: 0
Accepted
time: 788ms
memory: 15984kb

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.0000000000
-1.0000000000
-1.0000000000
38.9310027328
8.5002644376
10.2239039479
513.4574372975
7.4491565772
270.9176895280
6317.8520526818
129.0425820011
67459.8574735732
783.2875324842
-1.0000000000
-1.0000000000
15644.1038494108
1091.1075991810
-1.0000000000
123.0675438799
132.1993710926
911.40...

result:

ok 500 numbers

Test #34:

score: 0
Accepted
time: 718ms
memory: 14796kb

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.7514383256
-1.0000000000
20.9416010555
-1.0000000000
45460.5972655326
-1.0000000000
2730.3044221123
51241.5839469602
31.1572818643
-1.0000000000
13554.7956097029
33627.4640162881
16.7587723308
-1.0000000000
1.8180599222
1550.4148760254
-1.0000000000
51.4575206217
56.1483403288
-1.0000000000
-1....

result:

ok 600 numbers

Test #35:

score: 0
Accepted
time: 690ms
memory: 14068kb

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.7475711162
1036.8655454630
1049.0107016384
-1.0000000000
-1.0000000000
27316.4168081271
7893.0934563061
18.8488358140
18.7585503801
-1.0000000000
-1.0000000000
3.9938926319
330.8798315625
-1.0000000000
87.3408995509
-1.0000000000
-1.0000000000
-1.0000000000
35979.7618867165
-1.0000000000
853.7402...

result:

ok 700 numbers

Test #36:

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

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.2972806381
-1.0000000000
11.7865074152
-1.0000000000
-1.0000000000

result:

ok 5 numbers

Test #37:

score: 0
Accepted
time: 602ms
memory: 13276kb

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.7537595163
-1.0000000000
1.6911515381
-1.0000000000
-1.0000000000
76.0571080528
-1.0000000000
-1.0000000000
63.7775271118
-1.0000000000
53.1620416552
-1.0000000000
-1.0000000000
41.2030345809
-1.0000000000
-1.0000000000
-1.0000000000
207.6876683434
-1.0000000000
-1.0000000000
-1.0000000000
-1.000...

result:

ok 799 numbers

Test #38:

score: 0
Accepted
time: 582ms
memory: 13356kb

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.4301597331
40.5090378731
-1.0000000000
-1.0000000000
-1.0000000000
895.5242434799
620.9159949847
-1.0000000000
374.0574145684
-1.0000000000
-1.0000000000
-1.0000000000
4.1825946121
-1.0000000000
-1.0000000000
-1.0000000000
106.6865830505
107.0792072531
-1.0000000000
819.4926451448
11.7181165777
-...

result:

ok 800 numbers

Test #39:

score: 0
Accepted
time: 591ms
memory: 13728kb

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.0000000000
11.1325593715
3470.2964382715
2.9828853004
-1.0000000000
-1.0000000000
5427.9560743873
-1.0000000000
-1.0000000000
12.1179537210
-1.0000000000
50.5331982959
106.8240700854
3.4800299294
2.2509142658
29.6641205747
-1.0000000000
987.3765529568
-1.0000000000
227.1118123348
-1.0000000000
-1...

result:

ok 792 numbers

Test #40:

score: 0
Accepted
time: 594ms
memory: 13324kb

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.0000000000
-1.0000000000
92.6931223991
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
23900.3175077103
9.2801474872
1635.1950377210
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
148.2302421827
7991.2200669684
-1.0000000000...

result:

ok 800 numbers

Test #41:

score: 0
Accepted
time: 619ms
memory: 13348kb

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.0000000000
299.9374337504
-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
16.9212021542
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.00...

result:

ok 793 numbers

Test #42:

score: 0
Accepted
time: 605ms
memory: 13636kb

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.0000000000
-1.0000000000
11.8542174861
2.4311947105
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
1.9295825967
2.9614867712
20.4056963140
-1.0000000000
10.0956273012
-1.0000000000
3.9228980117
1882.5501852852
406.9145...

result:

ok 796 numbers

Test #43:

score: 0
Accepted
time: 600ms
memory: 13276kb

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.0525383055
-1.0000000000
1147.0676047259
123.1112348026
2.1791420215
1165.9642363339
-1.0000000000
-1.0000000000
484.6449317899
121.3883651298
-1.0000000000
-1.0000000000
8.7338713289
-1.0000000000
8.1718167857
-1.0000000000
482.1805448320
788.0035835771
-1.0000000000
-1.0000000000
71.0196534788
...

result:

ok 799 numbers

Test #44:

score: 0
Accepted
time: 594ms
memory: 13240kb

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.9894829313
-1.0000000000
-1.0000000000
1570.8837793412
-1.0000000000
11.3068348791
22.6635841943
-1.0000000000
-1.0000000000
8.4131098618
-1.0000000000
104.1704416275
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1....

result:

ok 798 numbers

Test #45:

score: 0
Accepted
time: 638ms
memory: 13212kb

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.0000000000
-1.0000000000
6.3395887071
67.8351913747
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
11385.5241115925
-1.0000000000
770.6257718500
-1.0000000000
-1.0000000000
-1.0000000000
32.9336040921
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
18.9431068603
-1....

result:

ok 791 numbers

Test #46:

score: 0
Accepted
time: 607ms
memory: 13212kb

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.0000000000
-1.0000000000
20.0189510857
-1.0000000000
-1.0000000000
-1.0000000000
158.1113180317
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
17302.8075543804
5259.7168710291
266.1312508534
-1.0000000000
660.8767764165
12420.0817635314
6.3490421741
-1.0000000000
-1.0000000000
-1.0000000...

result:

ok 799 numbers

Test #47:

score: 0
Accepted
time: 584ms
memory: 13220kb

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.0000000000
117.0502764417
1458.1017502413
-1.0000000000
-1.0000000000
-1.0000000000
16.7575438340
-1.0000000000
-1.0000000000
-1.0000000000
58.0110250590
-1.0000000000
437.3581463514
6.5438083449
92.0767673160
-1.0000000000
2594.2314209430
-1.0000000000
-1.0000000000
-1.0000000000
10.9080880832
-...

result:

ok 799 numbers

Test #48:

score: 0
Accepted
time: 585ms
memory: 13496kb

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.7224354625
13.5253443923
-1.0000000000
149.6163825918
30.8766293324
-1.0000000000
2244.3976890991
-1.0000000000
38.2884201996
-1.0000000000
-1.0000000000
16078.6563960171
-1.0000000000
-1.0000000000
-1.0000000000
-1.0000000000
10.4913758468
196.3238540648
16.7297394864
8136.1680822639
1.82190067...

result:

ok 800 numbers