Rosetta Problems

Walkin' on Numbered Tree

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1497