Rosetta Problems

阿拉丁和归途

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