Rosetta Problems
← atcoder に戻る
Mountain-Shaped Leveling
https://atcoder.jp/contests/awc0145/tasks/awc0145_e