QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#191815#6503. DFS Order 3ucup-team1646#WA 0ms3760kbC++201.0kb2023-09-30 11:21:172023-09-30 11:21:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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 2
2 1
2 3
2 1
2 3
2 4
1 2
1 3
2 4
3 5

result:

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