Rosetta Problems

Sliding Puzzle On Tree

https://atcoder.jp/contests/agc066/tasks/agc066_e