QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#868163#9751. 覆盖一棵树AlmondWA 8ms9828kbC++111.2kb2025-01-24 13:48:542025-01-24 13:48:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
8
1 2 3 2 5 1 7
8
1 2 3 4 5 6 7

output:

3
7

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 8ms
memory: 9828kb

input:

33428
10
1 2 3 3 4 6 7 7 9
10
1 2 3 4 5 6 7 8 8
8
1 2 3 4 5 6 7
8
1 2 3 4 4 6 7
4
1 2 3
3
1 2
3
1 1
9
1 2 3 4 5 6 7 8
2
1
3
1 2
10
1 2 3 4 5 6 7 8 9
3
1 2
2
1
10
1 2 3 4 5 6 7 8 9
2
1
5
1 2 2 4
8
1 2 3 4 5 6 7
5
1 2 3 3
2
1
5
1 2 3 4
3
1 2
9
1 2 3 4 5 6 6 8
9
1 2 3 4 5 6 7 8
9
1 2 3 4 5 5 7 8
8
1 2 ...

output:

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

result:

wrong answer 1st lines differ - expected: '4', found: '3'