QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#621209#4422. Two PermutationsHuangHanShengAC ✓423ms15420kbC++201.0kb2024-10-08 11:04:092024-10-08 11:04:11

詳細信息

Test #1:

score: 100
Accepted
time: 423ms
memory: 15420kb

input:

282
1000
434 697 735 906 614 835 227 800 116 98 776 601 110 371 262 452 608 368 719 717 241 572 203 410 440 749 604 457 516 637 488 691 841 493 418 307 745 499 833 789 819 179 357 288 129 954 29 391 80 389 771 613 653 747 928 570 518 1000 547 587 727 778 669 554 426 899 256 681 515 532 409 677 533 3...

output:

4
2
16
2
2
2
1
1
8
8
4
4
2
2
2
1
2
2
2
2
2
1
1
2
8
1
2
2
4
2
2
1
2
2
8
2
2
2
4
4
1
4
1
4
4
1
1
8
4
0
4
4
1
2
4
2
2
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 282 lines