QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#327990#3307. Query on a Tree 17ZhaoZiLongWA 1ms3688kbC++234.0kb2024-02-15 15:58:092024-02-15 15:58:09

詳細信息

Test #1:

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

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: 0
Accepted
time: 1ms
memory: 3620kb

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:

2
2
2
2
2
2
2
2
2
2
2

result:

ok 11 lines

Test #3:

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

input:

2
1 2
1
1 1

output:

0

result:

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