Rosetta Problems

树上漫步

https://www.acwing.com/problem/content/6334