QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#878015#8589. ExplosivesMaMengQi22 2ms3840kbC++2027.1kb2025-02-01 13:04:062025-02-01 13:04:06

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 16
Accepted
time: 0ms
memory: 3584kb

input:

1 1
149
6236

output:

6087
149 6236

result:

ok all correct

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 3712kb

input:

4 1
6891 1118 7824 5497
3301 9265 5948 6496

output:

8542
1118 3301 5497 5948 7824 9265 6891 6496

result:

wrong answer cost claimed by contestant does not match actual cost, 4470 8542 4470

Subtask #2:

score: 22
Accepted

Test #8:

score: 22
Accepted
time: 0ms
memory: 3584kb

input:

4 5
4701 3171 4420 3458
9318 8156 6845 5547

output:

6147
3171 3458 4420 4701 5547 6845 8156 9318

result:

ok all correct

Test #9:

score: 22
Accepted
time: 1ms
memory: 3712kb

input:

100 23
4048 2039 4962 4224 3397 1371 2736 757 81 1402 3734 1291 1408 2847 2989 4573 3117 3025 3152 1077 2023 4723 1568 1353 1374 124 2689 2609 1618 4641 1099 4363 509 3174 2257 3584 2348 4113 229 1060 3585 4519 4130 2529 4012 1445 3673 2436 1253 2040 1837 2719 76 1901 199 1606 2314 3346 610 1226 433...

output:

26361
76 81 124 199 229 267 280 423 479 509 610 757 840 1060 1077 1099 1226 1253 1291 1353 1371 1374 1402 8990 9005 9040 9101 9106 9128 9138 9172 9209 9242 9247 9258 9521 9547 9669 9694 9737 9815 9821 9834 9864 9896 9995 1408 1445 1568 1588 1606 1618 1718 1758 1837 1843 1901 1975 2023 2039 2040 2181...

result:

ok all correct

Test #10:

score: 22
Accepted
time: 2ms
memory: 3712kb

input:

1000 2
1637 2324 4069 4612 4998 2243 2664 1037 4680 3449 72 681 2810 3554 3265 643 3728 2761 3184 1323 3333 2081 4728 4363 1771 3000 3649 1749 3580 2855 1988 418 4525 3859 1400 2580 3790 2863 728 3605 3531 2096 2451 3782 6 4223 1243 4497 682 27 4094 4824 1361 1716 2328 2132 2248 2575 286 3838 1387 3...

output:

2492982
4 6 9987 9994 15 27 9982 9986 31 38 9976 9980 41 46 9970 9974 60 62 9961 9963 68 72 9957 9959 89 99 9941 9953 105 106 9931 9938 110 113 9911 9917 118 120 9891 9901 122 126 9886 9888 127 128 9873 9883 135 158 9847 9855 161 165 9841 9845 167 173 9832 9834 180 191 9823 9824 203 212 9802 9811 21...

result:

ok all correct

Test #11:

score: 22
Accepted
time: 0ms
memory: 3840kb

input:

1000 10
140 3713 561 1101 1223 4264 4819 3605 1907 427 1189 3954 4661 298 1439 2485 3406 231 2381 84 1077 2209 1470 4022 2 1034 191 3144 3660 986 1039 3467 3276 1545 984 3699 2248 884 121 2505 665 990 859 3965 3307 4901 1991 4045 3767 3412 819 248 3181 4933 1208 959 1728 761 26 471 4230 4217 2330 66...

output:

502316
2 5 8 12 18 24 26 41 49 55 9957 9972 9974 9976 9978 9979 9985 9991 9993 9998 56 66 70 73 79 80 84 93 94 97 9914 9918 9922 9923 9927 9936 9938 9940 9943 9953 99 103 110 115 119 121 123 140 141 155 9871 9874 9875 9880 9884 9886 9895 9910 9912 9913 156 157 159 160 170 173 184 187 190 191 9819 98...

result:

ok all correct

Test #12:

score: 22
Accepted
time: 1ms
memory: 3712kb

input:

1000 100
3343 1745 2296 3856 3507 192 2780 2459 2009 3193 4753 1028 334 871 589 1105 4612 3751 3708 2129 4032 2628 3974 4641 4323 596 604 4759 1906 1272 4606 2898 726 1304 1279 1448 2589 4565 735 4053 2935 4966 1424 3363 4153 4900 1722 4597 1501 2125 3512 1282 1744 4460 2529 1488 2067 895 4407 3863 ...

output:

55809
1 3 10 14 15 20 25 32 33 40 44 46 53 60 62 72 78 87 88 101 106 108 109 114 121 123 133 135 159 160 172 175 180 183 184 189 190 192 194 197 205 220 221 225 226 231 235 237 241 242 246 252 254 256 262 265 270 279 280 285 288 303 304 308 310 311 317 321 324 330 333 334 341 347 351 360 368 369 371...

result:

ok all correct

Test #13:

score: 22
Accepted
time: 0ms
memory: 3712kb

input:

1000 1000
2089 2983 4751 2038 1201 2034 2039 3841 873 2453 65 674 1216 3560 2644 3914 2345 3670 2518 3622 1938 4583 719 2137 1078 1359 1860 1448 4907 3741 629 1236 4549 4893 1999 844 4345 63 66 3320 2723 1990 1467 3215 2024 2665 756 1682 604 1853 3160 3262 2030 4153 3031 3278 631 2232 2360 1495 519 ...

output:

9984
16 21 22 24 28 33 36 42 45 53 54 59 62 63 65 66 71 73 80 82 86 88 91 95 98 100 101 108 125 126 130 132 133 138 145 147 151 153 154 155 163 169 170 180 182 187 188 193 207 223 228 229 232 233 238 266 270 277 278 288 291 292 294 306 316 331 347 348 351 354 355 357 364 368 375 377 390 395 412 422 ...

result:

ok all correct

Subtask #3:

score: 0
Skipped

Dependency #1:

0%