Skip to main content
  1. Tags/

BSGS

2017

poj 2417 Discrete Logging (BSGS算法)

·2 mins
题目链接 题意: Given a prime P, 2 <= P < 231, an integer B, 2 <= B < P, and an integer N, 1 <= N < P, compute the discrete logarithm of N, base B, modulo P. That is, find an integer L such that BL == N (mod P)