QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#197148#6503. DFS Order 3MaMengQiML 0ms0kbC++141.8kb2023-10-02 12:24:512023-10-02 12:24:51

详细

Test #1:

score: 0
Memory Limit Exceeded

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:


result: