Rosetta Problems

Mountain-Shaped Leveling

https://atcoder.jp/contests/awc0145/tasks/awc0145_e