Rosetta Problems

Distribute Numbers

https://atcoder.jp/contests/cf17-final/tasks/cf17_final_f