Rosetta Problems

Zigzag of Mountain Range

https://atcoder.jp/contests/awc0075/tasks/awc0075_a