标签:bsgs
a^(n-1) = ... (mod p)
https://code.csdn.net/snippets/624452
BZOJ-3122-随机数生成器-SDOI2013-BSGS
原文地址:http://blog.csdn.net/qq_21110267/article/details/44500045