QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#472597 | #4929. Longest Unfriendly Subsequence | GuanYunchang | 9 | 196ms | 6428kb | C++14 | 1.1kb | 2024-07-11 17:27:59 | 2024-07-11 17:28:01 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 3
Accepted
Test #1:
score: 3
Accepted
time: 50ms
memory: 4236kb
input:
1 200000 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 259021863 2...
output:
1
result:
ok single line: '1'
Test #2:
score: 0
Accepted
time: 50ms
memory: 5600kb
input:
1 200000 1521 1638 11981 18811 20091 22081 30494 31501 42139 42282 48197 55520 57632 69584 81745 85026 90303 91482 92176 98507 108061 108743 111257 121226 127217 127449 137116 163474 169192 175764 181243 185402 191244 198775 202845 212156 217723 220058 223478 224205 227614 228398 230425 232567 24480...
output:
198858
result:
ok single line: '198858'
Test #3:
score: 0
Accepted
time: 51ms
memory: 6208kb
input:
1 200000 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 222796328 2...
output:
3
result:
ok single line: '3'
Test #4:
score: 0
Accepted
time: 46ms
memory: 4352kb
input:
1 200000 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 760101 7601...
output:
575
result:
ok single line: '575'
Test #5:
score: 0
Accepted
time: 49ms
memory: 5628kb
input:
1 200000 22617 30507 37038 41687 43064 43064 49267 55626 59203 73739 82817 99920 109370 115622 115622 121135 121135 129717 129717 133074 133133 133133 142580 142580 142580 154213 154816 154816 161169 180270 186425 208068 213631 237721 252184 261468 266076 271129 271129 272992 278768 279170 299395 31...
output:
136202
result:
ok single line: '136202'
Test #6:
score: 0
Accepted
time: 50ms
memory: 3836kb
input:
5 24325 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 558278563 55...
output:
3 143 605 169 1
result:
ok 5 lines
Test #7:
score: 0
Accepted
time: 49ms
memory: 4028kb
input:
5 86417 13696 27186 31482 38856 51078 60129 60129 63547 67673 87520 97892 99326 118061 118645 146408 154082 166604 178823 201607 241484 250276 265112 265112 265112 266533 267321 312070 312070 314782 320641 321224 325817 328085 351487 365110 374487 382485 385081 393245 400245 419177 421858 423028 426...
output:
68280 264 2 26943 5
result:
ok 5 lines
Test #8:
score: 0
Accepted
time: 48ms
memory: 3980kb
input:
5 2977 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112394126 112...
output:
5 2 186 403 3
result:
ok 5 lines
Test #9:
score: 0
Accepted
time: 50ms
memory: 5940kb
input:
20 11481 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 2249526 224...
output:
84 1 6616 5 157 3 4 173 2652 64 73 2669 97 22009 20 36 4231 33 1 8816
result:
ok 20 lines
Test #10:
score: 0
Accepted
time: 50ms
memory: 3820kb
input:
100 1273 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 276188388 2...
output:
4 3 2906 3 2038 1262 2671 102 1 3 771 34 58 30 2 300 21 106 1 1 72 1 22 1123 5 547 5182 2 87 85 4 1370 158 74 2 1098 61 1027 11 82 1 377 2 715 5 52 67 3 472 158 1 58 6836 75 712 2 59 2 4 52 16 5 2 78 273 4281 36 1178 60 16 2 22 421 5 11 11 33 5 74 3 2 3 3 1770 5 2172 5 67 5 4 480 514 5 57 461 39 5 3...
result:
ok 100 lines
Test #11:
score: 0
Accepted
time: 42ms
memory: 3584kb
input:
1000 309 4317803 4317803 4317803 4317803 4317803 4317803 4317803 4317803 4317803 4317803 4317803 4317803 4317803 4317803 49219507 49219507 49219507 49219507 49219507 49219507 49219507 49219507 49219507 49219507 49219507 49219507 49219507 49219507 134343195 241438227 241438227 241438227 241438227 241...
output:
19 4 52 20 182 1 4 91 4 84 2 121 18 14 1 22 9 10 2 7 150 9 76 9 5 5 10 17 46 2 25 17 4 40 397 13 157 12 5 5 78 6 99 3 287 20 86 26 16 8 24 329 28 11 4 9 4 4 10 182 35 20 117 41 1 5 54 1 713 111 8 5 4 2 18 3 38 72 8 1 17 3 2 9 14 25 5 3 2 15 140 6 7 173 81 5 30 2 5 2 8 52 3 16 58 2 146 8 31 4 458 2 1...
result:
ok 1000 lines
Test #12:
score: 0
Accepted
time: 58ms
memory: 3480kb
input:
10000 13 116636133 116636133 206284888 206284888 565476781 812400365 812400365 961195858 961195858 961195858 961195858 961195858 961195858 2 8191780 8191780 43 95905577 95905577 95905577 95905577 95905577 95905577 487815159 487815159 602877460 602877460 602877460 602877460 602877460 602877460 602877...
output:
5 1 8 2 3 10 13 1 2 2 4 2 2 1 5 1 21 3 1 11 13 1 9 1 2 1 2 3 1 8 6 3 26 2 2 3 26 1 15 2 8 1 1 11 9 2 6 2 2 2 10 6 3 8 5 3 2 6 6 16 5 5 2 11 6 1 3 1 1 2 32 5 9 1 1 11 8 3 1 1 3 3 1 3 26 1 43 1 10 1 8 2 1 1 3 21 30 5 19 1 5 16 2 18 1 1 1 13 3 3 4 3 23 3 3 2 1 10 1 13 2 1 14 4 1 3 7 1 1 1 1 2 14 3 5 5 ...
result:
ok 10000 lines
Test #13:
score: 0
Accepted
time: 76ms
memory: 3560kb
input:
30000 18 77687359 77687359 77687359 77687359 77687359 77687359 77687359 77687359 264737334 264737334 264737334 264737334 423170703 423170703 423170703 423170703 423170703 423170703 3 426699491 894864848 895502688 23 329836738 329836738 329836738 329836738 329836738 329836738 329836738 329836738 3298...
output:
3 3 4 2 1 4 3 1 5 1 2 2 2 5 2 3 2 1 10 1 2 3 1 4 1 2 1 4 5 2 4 3 3 1 1 1 4 5 1 2 1 6 4 1 10 10 24 1 15 1 1 1 2 1 8 7 1 1 2 3 4 4 4 2 4 3 5 3 5 2 5 15 2 1 1 2 1 1 1 3 5 4 11 1 2 2 7 4 2 1 9 1 1 1 3 1 3 2 1 5 1 2 10 3 4 1 5 8 1 3 7 4 1 1 1 1 2 4 5 3 3 1 1 1 2 2 3 3 5 5 2 4 11 2 2 1 1 5 2 1 1 2 5 5 4 4...
result:
ok 30000 lines
Test #14:
score: 0
Accepted
time: 1ms
memory: 3516kb
input:
1 10000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
1
result:
ok single line: '1'
Subtask #2:
score: 6
Accepted
Test #15:
score: 6
Accepted
time: 0ms
memory: 3508kb
input:
3 5 1 2 1 2 1 7 1 2 3 2 1 2 3 8 1 10 10 1 1 100 100 1
output:
2 6 4
result:
ok 3 lines
Test #16:
score: 0
Accepted
time: 183ms
memory: 3732kb
input:
28653 6 372076545 832760265 372076545 644300403 644300403 644300403 8 540046638 375129642 863244619 863244619 375129642 540046638 540046638 540046638 6 142783193 508154499 871683432 71368434 871683432 871683432 8 760894385 984189193 760894385 323542350 984189193 760894385 323542350 323542350 6 84093...
output:
3 4 4 6 4 4 3 4 5 4 5 4 2 4 5 5 4 3 5 5 4 4 4 5 6 4 2 3 4 3 2 3 4 3 8 4 5 5 4 6 4 5 5 5 4 6 6 4 3 3 7 5 3 7 3 4 6 6 5 4 3 3 6 3 6 4 3 4 4 7 3 4 5 4 5 1 3 6 4 4 4 4 2 3 4 2 5 3 4 2 2 3 4 3 6 3 5 3 4 5 3 3 4 4 5 3 5 4 4 6 5 6 6 4 5 4 5 5 3 4 3 4 4 2 4 4 6 5 4 3 3 2 3 5 4 5 3 3 4 7 4 5 5 2 5 2 4 4 5 4 ...
result:
ok 28653 lines
Test #17:
score: 0
Accepted
time: 196ms
memory: 3732kb
input:
27269 6 959945170 761436985 26703386 942397980 959945170 26703386 8 547832867 143323747 65089190 143323747 768500236 65089190 143323747 768500236 5 858824238 403652496 456662012 403652496 361827479 7 434065011 434065011 434065011 217272832 959441476 434065011 441896572 7 436828348 383866500 43682834...
output:
6 7 4 5 3 4 6 4 4 4 6 6 4 5 4 5 5 5 4 4 2 5 5 4 5 3 5 4 7 2 4 7 7 6 3 6 4 6 6 4 5 5 5 4 2 3 6 4 4 5 4 5 5 2 4 5 4 5 5 4 5 7 5 3 4 4 6 4 6 3 4 6 3 5 5 5 5 3 6 6 4 2 5 5 7 5 4 6 4 5 3 3 3 4 5 3 5 4 4 4 4 4 5 5 3 5 5 8 5 4 4 3 3 4 6 3 7 6 2 8 5 4 5 5 3 4 4 6 3 5 5 3 6 6 5 5 5 6 7 5 6 4 4 5 5 3 2 6 6 4 ...
result:
ok 27269 lines
Test #18:
score: 0
Accepted
time: 127ms
memory: 3572kb
input:
24412 6 37652408 37652408 731951637 684367047 944732733 37652408 6 699823488 800701256 800701256 168169055 800701256 699823488 7 198445595 198445595 25271422 198445595 61301798 198445595 432743062 6 942430095 168670839 942430095 570524923 942430095 570524923 6 500326576 65482727 500326576 809311072 ...
output:
5 4 5 4 4 5 5 5 4 4 6 3 4 5 6 3 5 5 6 5 5 4 6 6 7 5 6 6 5 4 7 4 5 2 5 4 4 6 5 6 6 4 6 5 4 6 6 4 5 7 5 6 5 4 4 5 6 5 4 3 5 5 4 3 5 5 5 6 2 3 5 4 3 5 5 6 3 4 6 5 5 6 5 6 5 4 3 7 6 5 4 3 5 3 6 5 6 4 5 5 7 5 5 4 5 4 7 6 6 4 4 3 4 4 4 4 5 5 4 5 5 2 5 5 5 4 4 6 6 3 6 4 4 6 6 6 5 3 4 4 4 5 4 5 3 4 4 4 7 6 ...
result:
ok 24412 lines
Subtask #3:
score: 0
Time Limit Exceeded
Test #19:
score: 0
Time Limit Exceeded
input:
1 500 537076440 691668159 871942500 537076440 537076440 691668159 871942500 871942500 537076440 691668159 871942500 537076440 691668159 871942500 537076440 691668159 871942500 537076440 691668159 871942500 537076440 691668159 871942500 871942500 537076440 691668159 871942500 537076440 537076440 6916...
output:
result:
Subtask #4:
score: 0
Wrong Answer
Test #79:
score: 10
Accepted
time: 22ms
memory: 4272kb
input:
1 200000 1 3 3 2 2 3 3 1 2 3 1 1 3 3 3 2 1 1 2 3 2 1 3 3 3 1 2 2 1 3 1 2 1 2 3 2 3 3 2 2 3 2 3 2 3 1 1 1 1 1 3 1 3 2 3 3 3 3 1 3 2 1 3 2 3 2 3 1 1 1 1 3 3 2 3 2 1 2 2 3 2 3 2 2 2 2 2 2 3 2 1 2 2 1 1 3 2 1 2 1 1 3 3 3 2 1 2 2 2 1 3 3 2 3 2 1 3 3 2 2 1 3 1 3 2 1 2 3 2 1 2 3 2 2 3 2 1 2 1 1 1 1 1 1 1 3...
output:
66691
result:
ok single line: '66691'
Test #80:
score: 0
Accepted
time: 23ms
memory: 6428kb
input:
1 200000 2 2 3 3 3 2 1 2 1 1 1 3 3 2 3 3 1 3 2 3 3 3 2 1 2 2 2 2 1 1 2 2 1 3 1 3 1 3 3 1 2 1 1 2 1 1 2 1 1 1 1 2 2 1 3 2 3 3 2 3 2 3 1 1 1 1 2 3 1 2 1 1 2 3 2 3 3 2 1 2 1 1 3 3 3 1 2 3 1 3 1 3 1 1 2 1 3 2 1 1 3 2 1 1 3 2 3 2 3 2 1 3 2 2 2 1 2 2 1 3 3 1 3 1 2 3 1 1 2 2 2 1 3 1 1 3 3 2 3 2 1 3 1 1 1 3...
output:
66403
result:
ok single line: '66403'
Test #81:
score: 0
Accepted
time: 22ms
memory: 4280kb
input:
1 200000 1 2 3 3 1 2 3 3 1 2 3 1 1 2 3 1 2 3 1 2 2 3 1 2 2 3 3 3 1 2 3 3 1 2 3 3 1 1 2 2 3 3 1 2 3 3 1 1 2 3 1 2 2 3 3 1 2 3 1 1 1 1 2 3 3 1 2 2 3 1 1 1 2 2 3 3 1 1 1 2 2 3 1 1 2 3 3 1 1 2 3 1 2 3 1 2 3 3 1 1 2 3 1 1 1 1 2 3 1 2 3 3 1 2 2 2 2 2 3 1 1 2 3 1 2 2 3 1 2 3 3 1 2 2 3 1 2 3 1 1 1 2 2 3 1 2...
output:
113082
result:
ok single line: '113082'
Test #82:
score: 0
Accepted
time: 21ms
memory: 4368kb
input:
1 200000 2 3 3 1 2 2 2 3 1 1 2 3 1 2 2 3 3 1 2 3 3 3 3 3 3 1 2 3 1 2 3 3 1 2 2 3 3 1 2 3 3 3 1 2 2 3 3 3 1 2 2 3 3 3 3 3 1 1 2 3 1 2 3 3 1 1 2 2 3 1 1 1 1 2 3 1 2 2 3 3 3 1 2 3 1 1 2 2 3 1 1 1 1 2 2 3 3 3 3 1 1 2 3 1 2 3 1 1 1 2 3 3 1 1 2 3 1 1 2 3 1 2 3 1 2 3 1 2 2 3 3 1 2 2 3 3 1 1 1 2 2 3 1 1 1 2...
output:
98984
result:
ok single line: '98984'
Test #83:
score: 0
Accepted
time: 23ms
memory: 4332kb
input:
1 200000 3 2 2 2 1 1 2 2 2 1 3 2 3 3 3 1 3 1 3 3 2 1 1 2 1 2 3 2 2 3 1 3 3 2 3 2 3 3 3 2 3 2 3 3 3 3 1 2 3 2 2 1 1 2 3 1 3 1 1 2 1 2 1 1 1 3 3 1 3 2 2 2 1 1 2 3 3 3 1 3 3 3 1 3 2 2 1 3 3 1 3 3 1 3 3 1 3 1 1 1 3 2 3 1 3 1 3 3 3 2 2 2 3 3 2 1 2 1 3 3 2 1 1 3 1 2 2 1 3 1 2 2 3 2 1 2 2 1 3 2 3 3 3 1 1 2...
output:
66809
result:
ok single line: '66809'
Test #84:
score: 0
Accepted
time: 19ms
memory: 5852kb
input:
1 200000 3 1 3 1 3 1 2 1 2 2 3 1 3 2 3 1 1 3 1 3 2 3 3 3 3 1 1 1 2 2 1 1 3 1 2 2 2 1 2 1 1 2 3 2 2 1 3 2 2 2 3 1 1 2 3 1 3 2 1 1 3 1 1 3 1 2 3 1 2 1 2 1 1 1 3 1 1 1 1 3 2 1 2 3 3 2 2 3 1 1 2 1 1 2 1 3 1 3 3 1 1 1 1 1 3 2 3 2 3 1 3 2 1 3 1 3 2 1 1 1 3 2 1 1 3 1 3 3 3 2 2 3 1 3 1 1 3 3 3 2 1 3 3 1 1 1...
output:
66929
result:
ok single line: '66929'
Test #85:
score: 0
Accepted
time: 21ms
memory: 4284kb
input:
1 200000 1 2 2 3 1 2 3 1 2 3 1 2 3 1 1 2 3 1 2 3 1 1 2 3 1 2 3 1 2 3 1 2 3 3 1 2 2 3 1 1 2 3 1 2 3 1 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 3 3 3 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 2 3 1 2 3 1 2 3 1 1 2 2 3 1 2 3 1 2 3 1 2 3 1 1...
output:
165153
result:
ok single line: '165153'
Test #86:
score: 0
Accepted
time: 21ms
memory: 5868kb
input:
1 200000 3 1 2 3 1 2 3 1 2 3 3 1 2 2 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 1 2 3 1 2 3 1 2 3 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 2...
output:
161302
result:
ok single line: '161302'
Test #87:
score: -10
Wrong Answer
time: 21ms
memory: 4192kb
input:
3 14732 1 3 2 1 3 3 1 1 3 2 1 2 1 1 1 3 1 3 1 1 3 2 1 1 3 2 3 3 2 1 3 3 3 3 1 1 1 2 3 2 1 3 3 3 1 2 1 1 3 1 1 2 2 1 3 3 3 2 3 2 1 2 2 3 1 3 3 2 2 3 1 2 1 1 3 2 2 2 1 2 3 3 1 3 3 2 1 1 1 1 2 1 3 1 2 3 3 2 2 1 3 3 3 2 2 2 1 1 1 1 1 2 1 2 1 3 2 2 1 3 2 3 2 3 3 1 3 1 1 2 1 1 2 1 1 3 2 1 2 3 2 1 3 1 3 3 ...
output:
4957 135074 150975
result:
wrong answer 2nd lines differ - expected: '130118', found: '135074'
Subtask #5:
score: 0
Skipped
Dependency #4:
0%
Subtask #6:
score: 0
Skipped
Dependency #3:
0%
Subtask #7:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
0%