Rosetta Problems

Reconstruction of a Tree

https://onlinejudge.u-aizu.ac.jp/problems/ALDS1_7_D