Rosetta Problems

Convolution on the Multiplicative Monoid of $\mathbb{Z} / P\mathbb{Z}$

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