Rosetta Problems

A Mountain Range with Clear Visibility

https://atcoder.jp/contests/awc0160/tasks/awc0160_e