QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#438532#426. 传统艺能ucup-team2335100 ✓283ms19944kbC++143.4kb2024-06-10 19:13:422024-06-10 19:13:42

详细

Test #1:

score: 10
Accepted
time: 2ms
memory: 13908kb

input:

10 4
3 2 1 8 6 5 4 7 9

output:

181617343

result:

ok 1 number(s): "181617343"

Test #2:

score: 10
Accepted
time: 0ms
memory: 13868kb

input:

10 91
9 8 5 3 1 2 4 6 7

output:

979294405

result:

ok 1 number(s): "979294405"

Test #3:

score: 10
Accepted
time: 0ms
memory: 15936kb

input:

5 985433385
4 1 3 2

output:

581616517

result:

ok 1 number(s): "581616517"

Test #4:

score: 10
Accepted
time: 39ms
memory: 19944kb

input:

194809 1
194807 3 2 1 12 9 8 4 5 7 6 10 11 14 13 22 21 19 16 15 18 17 20 194798 24 23 194795 194790 194785 27 26 25 31 28 29 30 40 34 33 32 39 38 36 35 37 48 46 45 44 43 41 42 47 194782 50 49 194778 194770 56 55 54 51 52 53 194764 194762 194753 194747 60 57 58 59 67 63 61 62 64 66 65 74 68 69 73 72 ...

output:

67027862

result:

ok 1 number(s): "67027862"

Test #5:

score: 10
Accepted
time: 0ms
memory: 16012kb

input:

32 946189239
16 8 4 2 1 3 6 5 7 12 10 9 11 14 13 15 24 20 18 17 19 22 21 23 28 26 25 27 30 29 31

output:

602568459

result:

ok 1 number(s): "602568459"

Test #6:

score: 10
Accepted
time: 0ms
memory: 13984kb

input:

64 927627601
32 16 8 4 2 1 3 6 5 7 12 10 9 11 14 13 15 24 20 18 17 19 22 21 23 28 26 25 27 30 29 31 48 40 36 34 33 35 38 37 39 44 42 41 43 46 45 47 56 52 50 49 51 54 53 55 60 58 57 59 62 61 63

output:

289230741

result:

ok 1 number(s): "289230741"

Test #7:

score: 10
Accepted
time: 4ms
memory: 13888kb

input:

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

output:

246047302

result:

ok 1 number(s): "246047302"

Test #8:

score: 10
Accepted
time: 9ms
memory: 14000kb

input:

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

output:

416904570

result:

ok 1 number(s): "416904570"

Test #9:

score: 10
Accepted
time: 137ms
memory: 15760kb

input:

95552 924470405
7 3 1 2 4 6 5 10 8 9 95547 16 11 15 14 12 13 95543 95533 25 24 23 19 17 18 22 21 20 27 26 95528 34 29 28 33 30 32 31 40 35 39 36 38 37 95519 47 44 41 43 42 45 46 95517 95514 56 49 48 55 54 53 52 50 51 59 57 58 64 60 62 61 63 95509 66 65 69 68 67 71 70 78 77 72 75 73 74 76 95504 82 81...

output:

778611049

result:

ok 1 number(s): "778611049"

Test #10:

score: 10
Accepted
time: 283ms
memory: 19912kb

input:

194473 918039998
194469 5 1 2 3 4 10 6 7 9 8 194466 19 12 11 17 13 16 15 14 18 194462 194457 194450 194445 194437 194428 194422 194420 194415 194413 194407 194405 194402 194400 23 21 20 22 194396 194393 194389 194382 31 24 30 29 28 27 26 25 194375 34 32 33 39 36 35 38 37 42 40 41 194372 45 43 44 194...

output:

128548459

result:

ok 1 number(s): "128548459"

Extra Test:

score: 0
Extra Test Passed