Rosetta Problems

Watering the Flower Bed

https://atcoder.jp/contests/awc0111/tasks/awc0111_c