Rosetta Problems

Enumerate Quotients

https://judge.yosupo.jp/problem/enumerate_quotients