Rosetta Problems

Water Management and Harvest Value Aggregation

https://atcoder.jp/contests/awc0092/tasks/awc0092_a