QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#405598#3307. Query on a Tree 17DitaMirikaWA 1ms7768kbC++231.9kb2024-05-06 09:54:072024-05-06 09:54:08

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 7600kb

input:

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

output:

2
7
7
1

result:

ok 4 lines

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 7768kb

input:

15
1 2
1 3
2 4
3 7
6 2
3 8
4 9
2 5
5 11
7 13
10 4
11 15
12 5
14 7
11
2 6 11
1 6
2 10 9
1 9
2 2 6
1 4
2 7 6
1 2
2 8 13
1 10
2 8 15

output:

1
1
1
1
1
2
2
2
2
2
2

result:

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