Rosetta Problems

Squirrel Merchant

https://atcoder.jp/contests/diverta2019-2/tasks/diverta2019_2_d