Rosetta Problems

Orchard Harvest

https://atcoder.jp/contests/awc0061/tasks/awc0061_c