1990: 图的遍历-dfs
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:9
Solved:7
Description

Input

Output

Sample Input Copy
4 3
1 2
2 4
4 3
Sample Output Copy
4 4 3 4