QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#475974#9125. Majority and Permutationucup-team1537#TL 5ms7264kbC++2310.8kb2024-07-13 17:22:582024-07-13 17:23:01

详细

Test #1:

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

input:

2 2
1 3

output:

14

result:

ok "14"

Test #2:

score: 0
Accepted
time: 3ms
memory: 6236kb

input:

5 4
1 3 7 9

output:

2909184

result:

ok "2909184"

Test #3:

score: 0
Accepted
time: 3ms
memory: 6176kb

input:

5 1
5

output:

3614400

result:

ok "3614400"

Test #4:

score: 0
Accepted
time: 3ms
memory: 6256kb

input:

3 1
3

output:

684

result:

ok "684"

Test #5:

score: 0
Accepted
time: 3ms
memory: 6096kb

input:

5 2
5 9

output:

3614400

result:

ok "3614400"

Test #6:

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

input:

96685 10195
21 27 35 53 63 81 89 117 119 125 131 135 141 157 181 201 225 229 269 275 287 293 321 325 361 363 379 403 409 429 435 441 491 501 505 543 569 609 611 669 711 717 725 727 731 759 769 785 793 797 809 821 863 899 903 911 929 937 961 997 1051 1073 1077 1123 1157 1179 1235 1251 1275 1317 1319 ...

output:

95571712

result:

ok "95571712"

Test #7:

score: -100
Time Limit Exceeded

input:

64166 56097
3 9 11 13 15 17 19 21 25 27 29 31 33 35 37 39 41 43 45 47 49 51 55 57 59 61 63 65 67 69 71 73 75 77 79 85 87 89 91 93 95 97 101 105 107 111 113 115 117 119 121 123 125 127 131 133 137 141 143 145 149 153 155 159 161 163 167 169 171 173 175 177 181 183 185 187 189 191 195 197 199 201 205 ...

output:


result: