Rosetta Problems

Apple Picking

https://atcoder.jp/contests/awc0055/tasks/awc0055_a