Rosetta Problems

智力大冲浪

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