Rosetta Problems

Watering II

https://marisaoj.com/problem/599