Rosetta Problems

View of the Mountain Range

https://atcoder.jp/contests/awc0035/tasks/awc0035_e