Rosetta Problems

Sliding Tree Puzzle

https://atcoder.jp/contests/ahc011/tasks/ahc011_a