Rosetta Problems

奇怪的道路

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