Rosetta Problems

Reward of Multiples

https://atcoder.jp/contests/awc0005/tasks/awc0005_a