QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#358005#6503. DFS Order 3ZhaoZiLongWA 1ms7828kbC++17911b2024-03-19 16:18:322024-03-19 16:18:32

詳細信息

Test #1:

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

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:

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

result:

wrong answer ord[1] didn't pass the test (test case 4)