Rosetta Problems

Selection of Contiguous Intervals

https://atcoder.jp/contests/awc0027/tasks/awc0027_e