Rosetta Problems

Stable Sections of a Mountain Trail

https://atcoder.jp/contests/awc0147/tasks/awc0147_b