QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#515342#4880. Network TransferHuangHanShengWA 162ms17600kbC++171.3kb2024-08-11 17:15:332024-08-11 17:15:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 6008kb

input:

2 10
0 100 2
4 200 1

output:

13.0000000000
30.0000000000

result:

ok 2 numbers

Test #2:

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

input:

2 10
30 200 1
10 100 2

output:

50.0000000000
20.0000000000

result:

ok 2 numbers

Test #3:

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

input:

1 10000000
0 1 42

output:

0.0000001000

result:

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

Test #4:

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

input:

1 10000000
42 1 42

output:

42.0000001000

result:

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

Test #5:

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

input:

1 10000000
42 10000000 42

output:

43.0000000000

result:

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

Test #6:

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

input:

1 10000000
10000000 1 1

output:

10000000.0000001006

result:

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

Test #7:

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

input:

1 10000000
1 1 100

output:

1.0000001000

result:

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

Test #8:

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

input:

1 1
10000000 10000000 100

output:

20000000.0000000000

result:

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

Test #9:

score: 0
Accepted
time: 106ms
memory: 15760kb

input:

200000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10000000 1
10000000 10...

output:

2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
2000009999999.9997558594
...

result:

ok 200000 numbers

Test #10:

score: 0
Accepted
time: 135ms
memory: 15744kb

input:

200000 1
10000000 10000000 22
10000000 10000000 62
10000000 10000000 71
10000000 10000000 73
10000000 10000000 82
10000000 10000000 15
10000000 10000000 60
10000000 10000000 26
10000000 10000000 35
10000000 10000000 83
10000000 10000000 58
10000000 10000000 84
10000000 10000000 23
10000000 10000000 ...

output:

1790041363636.3642578125
1390577580645.1613769531
1300784647887.3242187500
1280812465753.4250488281
1190840487804.8784179688
1859583333333.3339843750
1410498166666.6667480469
1750241923076.9238281250
1660420857142.8579101562
1180833975903.6147460938
1430416379310.3449707031
1170834642857.1430664062
...

result:

ok 200000 numbers

Test #11:

score: 0
Accepted
time: 162ms
memory: 17600kb

input:

199293 5
9504657 9159218 4
9229606 9939393 93
9949326 9400061 74
9049202 9678955 63
9856746 9805686 100
9900514 9492706 58
9077984 9828311 42
9082259 9783365 78
9815702 9654015 95
9655893 9753916 11
9027905 9930425 9
9210664 9496857 85
9488366 9132506 56
9416678 9238290 2
9475297 9343399 28
9442121 ...

output:

372606864555.1205444336
212211534775.6552734375
238948149663.0410156250
263425611185.3544616699
197063144013.4962463379
270580494646.0328369141
303467045798.2550659180
237141228118.9254455566
203504180187.0526733398
360171498662.9431762695
364170179095.5712890625
219530866865.6297607422
270186214835...

result:

ok 199293 numbers

Test #12:

score: 0
Accepted
time: 151ms
memory: 15640kb

input:

199775 5
9573917 9665464 57
9498813 9469832 81
9885957 9606395 14
9397765 9003071 9
9246019 9070405 26
9740136 9081183 11
9893308 9667485 60
9912483 9414387 94
9934996 9683245 7
9359993 9793294 90
9852046 9209808 22
9704268 9048813 52
9066664 9842295 49
9894656 9914370 56
9520915 9685732 36
9507809 ...

output:

275136188681.6245727539
227063705577.1885070801
355194309827.0418090820
363385338618.7741699219
329856159627.1693115234
359600267866.4183349609
269538859112.9465026855
201263971424.1479187012
368365549271.4406127930
215596647879.4368896484
338462086635.5147705078
277864582191.7789306641
291752383805...

result:

ok 199775 numbers

Test #13:

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

input:

199876 10
9569180 9097026 11
9805018 9888590 69
9859588 9812730 54
9708644 9290190 38
9672977 9335125 45
9617443 9706660 56
9670948 9431976 69
9705708 9008410 2
9091288 9600793 23
9064094 9794988 56
9750869 9563190 30
9234184 9600771 22
9681961 9478086 50
9410316 9590449 15
9604218 9991066 51
957349...

output:

179887507879.3543395996
127724903099.1163482666
141024141836.3508911133
153787858998.0344543457
147195733048.1172790527
138618997279.5915527344
124676275642.3491210938
188810825750.2653198242
169163511122.1329040527
139088289036.2442932129
162417585447.2022705078
170108072542.1177368164
143081618014...

result:

ok 199876 numbers

Test #14:

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

input:

199977 4
9602127 9565587 73
9111223 9419029 57
9833218 9019063 97
9020206 9577308 79
9062250 9637529 67
9457065 9295138 1
9448587 9234150 78
9535931 9639433 15
9247581 9592339 40
9768195 9797367 34
9649692 9879574 35
9727787 9190412 97
9260259 9150191 43
9851295 9229529 69
9724520 9333397 67
9676184...

output:

304491753262.7379150391
340031067721.0160522461
234313922207.0670471191
290561445183.4451293945
319806025765.5385742188
474840344781.4556884766
286089986044.7310791016
441518236521.8295288086
382411279202.5549926758
398221219099.1509399414
396587568673.4395751953
238678764660.4856262207
370475863738...

result:

ok 199977 numbers

Test #15:

score: 0
Accepted
time: 158ms
memory: 15848kb

input:

199077 6
9634388 9960151 22
9418114 9874787 41
9769850 9225397 37
9368769 9901425 8
9489208 9902249 82
9371370 9920615 49
9263226 9036325 88
9329155 9233456 23
9366876 9584570 56
9434611 9799061 9
9473832 9195956 44
9220704 9779369 72
9801558 9822981 43
9366955 9830926 27
9770139 9638731 78
9741872 ...

output:

283688147387.3348388672
254552170732.0873718262
256675980123.5538940430
304680729443.0359497070
192633843521.3576049805
242706661004.9929199219
170818527368.7018737793
279445737169.9196777344
229155389462.9846801758
303032608931.1447143555
245028698316.4492187500
206387719766.6676635742
251159922565...

result:

ok 199077 numbers

Test #16:

score: -100
Wrong Answer
time: 58ms
memory: 16468kb

input:

199174 94
4939842 606 76
1166421 867 100
9051103 784 55
8172658 675 51
3743680 551 61
2613139 796 25
6619357 995 81
4244151 919 13
1565998 618 89
8971567 956 48
4453079 696 6
6507538 985 84
821657 762 98
5429287 786 27
6562208 661 86
286640 615 36
6512669 689 74
219589 615 49
8412173 719 58
8817089 ...

output:

-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
...

result:

wrong output format Expected double, but "-nan" found