Rosetta Problems

The Highest Peak of the Mountain Range

https://atcoder.jp/contests/awc0037/tasks/awc0037_a