Rosetta Problems

Growing Tree

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