Rosetta Problems

Adjusting the Weight of Apples

https://atcoder.jp/contests/awc0135/tasks/awc0135_a