洛谷 P3846 【模板】BSGS / [TJOI2007] 可爱的质数给定质数 ppp 与整数 b,nb,nb,n,求最小的非负整数 lll,使 bl≡n(modp)b^l\equiv n\pmod pbl≡n(modp);无解则报告。