Rosetta Problems

Watering the Lawn

https://atcoder.jp/contests/awc0113/tasks/awc0113_b