Rosetta Problems

Adjacent Chmax

https://atcoder.jp/contests/agc058/tasks/agc058_b