Rosetta Problems

Watering the Flower Bed

https://atcoder.jp/contests/awc0115/tasks/awc0115_a