[21094] Discrete Logarithm is a Joke
·
PS | CP/Baekjoon OJ
%2021. 6. 29. 02:35에 작성된 글입니다% https://www.acmicpc.net/problem/21094 21094번: Discrete Logarithm is a Joke $M = 10^{18} + 31$ is a prime number. $g = 42$ is a primitive root modulo $M$, which means that $g^{1} \bmod M, g^{2} \bmod M, \ldots, g^{M-1} \bmod M$ are all distinct integers from $[1; M)$. Let's define a function $f(x)$ as the smallest positive integer www.acmicpc.net 이산 로그 100만번 구하는건가보다..