QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#41708#3840. Pass the Ball!csffmWA 75ms10188kbC++20811b2022-07-31 16:06:342022-07-31 16:06:35

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 6156kb

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: 3ms
memory: 6116kb

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: 3ms
memory: 6116kb

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: 50ms
memory: 10188kb

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: 75ms
memory: 10052kb

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:

248601952
251190794
248515468
248404573
250674357
249193443
253148160
251356424
251811705
248632759
253611991
249901851
250891718
248803009
251702963
251745416
251685415
247762490
255070198
249129502
250267828
248306882
252474159
250906491
248199065
249741290
252295342
250928435
249838432
251408819
...

result:

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