Rosetta Problems

Field Watering Plan

https://atcoder.jp/contests/awc0021/tasks/awc0021_e