Rosetta Problems

Distinct Multiples

https://atcoder.jp/contests/abc236/tasks/abc236_h