Rosetta Problems

Discrete Logarithm

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