QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#469877#1281. Longest Common SubsequenceMaMengQiWA 50ms15920kbC++202.6kb2024-07-10 08:36:162024-07-10 08:36:16

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 15900kb

input:

3
3 3
1 2 3
1 2 3
3 3
1 1 1
1 1 2
3 3
1 3 2
1 2 3

output:

3
2
2

result:

ok 3 tokens

Test #2:

score: -100
Wrong Answer
time: 50ms
memory: 15920kb

input:

139889
1 10
2
2 1 2 2 3 1 1 2 3 3
7 1
3 2 3 3 1 1 2
2
6 1
2 1 3 1 1 1
1
8 7
3 1 3 3 2 2 3 1
3 2 2 1 3 3 3
10 3
3 2 1 1 2 2 1 1 1 1
3 1 1
5 2
1 2 1 3 1
1 2
1 4
1
3 3 3 3
7 2
3 1 2 1 2 2 3
3 2
6 2
3 1 1 2 1 3
1 3
1 4
1
3 1 1 3
4 2
2 3 2 3
1 3
1 8
1
1 1 3 1 3 3 3 1
4 1
1 3 3 3
1
10 10
3 1 2 1 2 2 2 2 1...

output:

6
2
1
5
3
2
4
4
2
2
3
5
1
9
2
2
2
4
2
4
5
4
1
5
6
4
3
2
3
4
4
2
3
4
4
5
6
2
3
6
1
1
3
1
1
5
5
4
5
4
2
4
6
4
2
2
4
2
3
4
4
7
3
4
7
3
3
3
2
5
5
6
4
5
2
3
2
4
4
3
4
2
5
2
6
4
1
3
3
4
5
4
1
6
4
6
2
4
1
4
6
4
4
2
1
2
1
5
5
6
5
5
1
5
2
3
3
3
1
4
2
4
1
3
4
5
1
1
4
6
2
2
4
5
2
4
3
5
5
5
5
6
6
3
3
5
5
4
3
3
...

result:

wrong answer 1st words differ - expected: '1', found: '6'