Rosetta Problems

Tree Transformation Puzzle

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