Rosetta Problems

Bonus Distribution

https://atcoder.jp/contests/awc0042/tasks/awc0042_c