Rosetta Problems

蜗牛爬井

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