UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#133881#2098. 古韵之乞巧191001ms1196kbC++11375b2021-07-17 14:50:062021-07-17 14:50:07

answer


详细

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

Test #1:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

10 5
1 2 3 4 5 6 7 8 9 10

output:

252

result:

ok single line: '252'

Test #2:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

3 2
3 2 1

output:

0

result:

ok single line: '0'

Test #3:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

94 18
0 1 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...

output:

9007607943130625829

result:

ok single line: '9007607943130625829'

Test #4:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

84 10
-1458 -1303 1188 -89 7125 -606 8009 -3175 -8058 1105 -7494 -476 -5064 5524 5556 2285 -3589 396...

output:

250651

result:

ok single line: '250651'

Test #5:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

4 1
-3269 5137 8673 7238

output:

4

result:

ok single line: '4'

Test #6:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

77 13
-8827 -9456 807 3447 1106 4631 9730 -1009 7398 -593 -8415 -8387 2003 -8735 -3476 -3208 -9685 -...

output:

11297

result:

ok single line: '11297'

Test #7:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

15 2
6541 6748 -22 -2875 -5288 -3690 1829 3927 2877 3232 4225 636 9472 -5291 -5518

output:

46

result:

ok single line: '46'

Test #8:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

59 12
-2139 4081 -2991 -2056 -3732 -7985 4138 6680 1655 -7834 302 3616 -7458 -2550 156 -6989 -8852 -...

output:

7438

result:

ok single line: '7438'

Test #9:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

11 2
5246 3339 -1608 3908 9480 -6032 863 -6521 9945 -3085 -355

output:

22

result:

ok single line: '22'

Test #10:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

9 3
-4206 1115 -6152 -5045 3434 -1606 5560 653 3212

output:

25

result:

ok single line: '25'

Test #11:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

100 17
-2188 4545 -5825 9109 -4420 -3242 8192 -5454 -9903 304 8454 -6703 4272 -683 -3224 7938 9953 -...

output:

2854

result:

ok single line: '2854'

Test #12:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

77 13
7319 4944 -1071 729 301 7665 6078 -2802 -5021 -1314 -389 -9471 1272 -8357 8927 -6295 2073 4062...

output:

1307

result:

ok single line: '1307'

Test #13:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

100 13
1869 3076 -7751 1127 -2332 847 3736 -7280 5045 -3189 4507 -4688 1525 7938 -7313 -3457 3104 -8...

output:

237996

result:

ok single line: '237996'

Test #14:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

21 2
6890 -6472 3537 1815 -9108 -4104 237 5257 -6868 8045 -5706 4596 3388 -9100 -4914 -3581 -5611 10...

output:

99

result:

ok single line: '99'

Test #15:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

38 2
7202 -843 -5679 -1405 6224 -3039 8657 -1900 -2428 -7815 -8363 9387 -6923 -2467 3344 -7946 4386 ...

output:

353

result:

ok single line: '353'

Test #16:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

58 4
5934 -2537 5628 -7269 8717 -1029 -1493 6823 -5920 4855 -476 2578 -4176 -2688 4935 -5097 9866 -9...

output:

8523

result:

ok single line: '8523'

Test #17:

score: 5
Accepted
time: 1ms
memory: 1192kb

input:

19 6
-922 516 7435 6093 -1547 6880 -736 5362 -1449 5538 -3649 5078 5056 3638 1150 -673 5860 2125 9743

output:

3

result:

ok single line: '3'

Test #18:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

89 11
9320 4918 4744 -6607 718 6880 4498 -9756 -1195 8940 -677 9321 -9905 -4585 -2226 -9305 4679 -31...

output:

41001

result:

ok single line: '41001'

Test #19:

score: 5
Accepted
time: 0ms
memory: 1196kb

input:

79 3
8058 -1046 5783 -1066 8917 -9225 -8130 -731 5922 -5446 2537 6440 -3694 1762 -7576 2543 996 -798...

output:

15648

result:

ok single line: '15648'

Test #20:

score: 5
Accepted
time: 0ms
memory: 1192kb

input:

82 1
6485 -1052 2547 -2761 -4830 8421 -4293 -8722 3590 -8169 -6283 6113 -5436 -1731 4923 6544 9431 5...

output:

82

result:

ok single line: '82'