UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#119035#1443. 烽火传递Body10038ms6112kbC++683b2020-09-12 23:23:412020-09-12 23:23:43

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 9
Accepted
time: 0ms
memory: 5280kb

input:

10 4
51 88 21 55 86 22 38 18 42 54

output:

59

result:

ok single line: '59'

Test #2:

score: 9
Accepted
time: 5ms
memory: 5700kb

input:

100000 29
77 523 827 780 710 375 540 168 472 791 846 45 451 190 528 105 430 173 294 291 166 266 897 ...

output:

216228

result:

ok single line: '216228'

Test #3:

score: 9
Accepted
time: 19ms
memory: 6112kb

input:

200000 38
818 942 212 352 187 65 461 639 879 765 567 395 211 498 252 592 489 579 459 944 771 242 750...

output:

256207

result:

ok single line: '256207'

Test #4:

score: 9
Accepted
time: 0ms
memory: 5288kb

input:

100 17
55 8 69 20 42 52 26 63 98 0 48 8 29 89 42 59 19 84 71 87 76 95 41 30 47 17 65 27 41 20 25 12 ...

output:

83

result:

ok single line: '83'

Test #5:

score: 9
Accepted
time: 0ms
memory: 5288kb

input:

1000 7
825 460 236 945 465 90 355 899 195 393 290 630 553 103 138 967 927 100 394 387 860 328 315 93...

output:

28904

result:

ok single line: '28904'

Test #6:

score: 9
Accepted
time: 0ms
memory: 5296kb

input:

4000 13
56 38 63 7 25 46 57 46 67 67 58 56 24 42 73 66 2 31 96 35 46 49 32 73 48 31 99 89 3 46 73 53...

output:

3446

result:

ok single line: '3446'

Test #7:

score: 9
Accepted
time: 0ms
memory: 5324kb

input:

10000 19
254 956 382 720 474 853 554 1 972 33 184 329 149 94 12 261 780 285 147 733 180 606 30 429 4...

output:

48443

result:

ok single line: '48443'

Test #8:

score: 9
Accepted
time: 2ms
memory: 5504kb

input:

49999 18
549 768 500 69 192 586 822 830 814 40 374 255 916 459 389 450 973 179 721 40 182 790 816 49...

output:

263276

result:

ok single line: '263276'

Test #9:

score: 9
Accepted
time: 2ms
memory: 5532kb

input:

60000 40
8 9 24 74 23 72 70 49 89 51 20 75 17 93 0 42 15 24 79 3 92 18 4 68 47 5 66 24 5 80 43 39 60...

output:

5856

result:

ok single line: '5856'

Test #10:

score: 9
Accepted
time: 4ms
memory: 5612kb

input:

80000 74
97 4 29 18 7 10 6 56 3 97 89 11 88 0 90 14 54 64 34 1 92 65 85 21 64 73 83 61 25 65 31 9 56...

output:

2081

result:

ok single line: '2081'

Test #11:

score: 9
Accepted
time: 6ms
memory: 5684kb

input:

100000 111
31 404 135 132 502 282 977 934 352 904 110 806 425 271 485 173 678 158 370 248 747 819 21...

output:

15407

result:

ok single line: '15407'