Rosetta Problems

根能抵达的点

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