Rosetta Problems

Intervals That Can Be Arranged Alternately

https://atcoder.jp/contests/awc0088/tasks/awc0088_e