摘要:
Description 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 阅读全文
摘要:
Description Given a big integer number, you are required to find out whether it's a prime number. Input The first line contains the number of test cas 阅读全文