#### Question: [Problem E]

Followed by n-1 lines, each contains two integers u and v (1≤ u, v ≤ n), which means it takes one hour to go from level u to level v.

it means that we can't move from v to u!

#### Judge answer:

it should've been "from level u to level v or vice versa".

fixed in the problem statement.