Rosetta Problems

Redistribution of Piles

https://atcoder.jp/contests/abc313/tasks/abc313_g