Rosetta Problems

Smooth Mountain Path

https://atcoder.jp/contests/awc0116/tasks/awc0116_e