QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#41681#3840. Pass the Ball!ZhaoZiLongWA 920ms8752kbC++1.1kb2022-07-31 14:40:532022-07-31 14:40:55

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 7124kb

input:

4 4
2 4 1 3
1
2
3
4

output:

25
20
25
30

result:

ok 4 lines

Test #2:

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

input:

3 6
2 3 1
1
2
3
999999998
999999999
1000000000

output:

11
11
14
11
14
11

result:

ok 6 lines

Test #3:

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

input:

3 6
3 1 2
1
2
3
999999998
999999999
1000000000

output:

11
11
14
11
14
11

result:

ok 6 lines

Test #4:

score: 0
Accepted
time: 920ms
memory: 7552kb

input:

1000 10000
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...

output:

333334000
332835500
332338000
331841500
331346000
330851500
330358000
329865500
329374000
328883500
328394000
327905500
327418000
326931500
326446000
325961500
325478000
324995500
324514000
324033500
323554000
323075500
322598000
322121500
321646000
321171500
320698000
320225500
319754000
319283500
...

result:

ok 10000 lines

Test #5:

score: -100
Wrong Answer
time: 899ms
memory: 7324kb

input:

1000 10000
187 493 316 665 124 40 448 649 657 65 438 730 816 107 789 286 309 469 169 216 488 52 212 111 541 83 990 48 282 867 36 220 676 241 959 372 322 244 481 708 595 957 215 223 120 658 291 176 229 158 431 492 221 986 889 861 606 518 106 349 410 765 745 812 563 998 150 392 358 328 747 793 587 507...

output:

248631959
244819757
251875479
251497342
254289246
252248393
251910483
250409234
247875800
249695822
249853268
250571938
249910379
247133346
248954997
254042170
250576353
248018231
252313891
253708504
250104194
246387254
247209338
248607595
250646428
249292114
252295342
252157631
248536777
254258546
...

result:

wrong answer 1st lines differ - expected: '250347169', found: '248631959'