QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#122364#6503. DFS Order 3HuangHanShengWA 1ms3508kbC++111.3kb2023-07-10 10:27:592023-07-10 10:28:00

詳細信息

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3508kb

input:

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

output:

2
1
1
1

result:

wrong answer your output is not a tree (test case 2)