QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#559340#1163. Another Tree Queries ProblemCreeper_lWA 0ms17220kbC++149.5kb2024-09-11 21:26:572024-09-11 21:26:57

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 17220kb

input:

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

output:

i = 1 dfn = 1
i = 2 dfn = 3
i = 3 dfn = 5
i = 4 dfn = 4
i = 5 dfn = 2
u = 2 v = 2
2 x = 1
>>> 2 2
l = 3 r = 3 sum = 1
l = 1 r = 3 sum = 1
l = 1 r = 5 sum = 1
--------------u = 4 v = 2
4 x = 2
>>> 4 2
l = 3 r = 3 sum = 3
l = 1 r = 3 sum = 3
l = 4 r = 4 sum = 1
l = 4 r = 5 sum = 1
l = 1 r = 5 sum = 4
...

result:

wrong output format Expected integer, but "i" found