QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#570020#5148. Tree DistanceaaaaaRE 0ms0kbC++202.4kb2024-09-17 13:16:572024-09-17 13:16:58

详细

Test #1:

score: 0
Runtime Error

input:

5
1 2 5
1 3 3
1 4 4
3 5 2
5
1 1
1 4
2 4
3 4
2 5

output:


result: