Rosetta Problems

Harvest Interval in the Orchard

https://atcoder.jp/contests/awc0028/tasks/awc0028_b