Rosetta Problems

Equal Shopping

https://atcoder.jp/contests/awc0163/tasks/awc0163_d