时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒 空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M Special Judge, 64bit IO Format: %lld
题目描述
MianKing has a Graph Constructer : The input of it is a sequence and the output of it is an undirected graph with nodes, edge is in this graph if and only if
For example, if the input is , the output is the graph
Now GreenKing has a tree with nodes, MianKing wants to find a sequence as input to get this tree. You need to help him find a sequence satisfy the condition.
输入描述:
The first line has one integer .
Then there are lines, each line has two integers denotes an edge in the tree.