Rosetta Problems

棍子上的蚂蚁

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