QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#468441#1281. Longest Common SubsequenceZhangYiDeTL 0ms33152kbC++201.6kb2024-07-08 20:48:152024-07-08 20:48:16

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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
Time Limit Exceeded

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:

0
0
2
4
3
1
0
1
2
1
1
1
1
6
6
0
1
2
0
3
4
3
1
1
1
0
1
3
4
4
3
3
1
2
1
2
0
1
2
2
2
1
2
0
1
1
2
2
2
3
0
4
1
2
2
1
3
0
1
2
1
2
2
3
4
2
3
0
3
0
2
4
3
2
1
1
2
1
1
1
2
0
5
2
4
1
2
4
4
2
5
0
0
4
1
3
2
1
0
2
1
5
2
2
0
1
0
3
2
4
0
3
0
0
3
3
1
2
0
4
0
4
1
0
1
3
0
0
0
1
0
1
3
2
2
1
3
4
3
0
1
2
1
0
0
0
2
2
2
2
...

result: