Rosetta Problems

Tree Reconstruction

https://atcoder.jp/contests/JAG2013Spring/tasks/icpc2013spring_j