QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#785833#3307. Query on a Tree 17qiuzxWA 0ms22320kbC++204.0kb2024-11-26 19:23:412024-11-26 19:23:46

詳細信息

Test #1:

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

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: 22320kb

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
1
2
1
1
1

result:

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