关于BSGS的 p\sqrt{p}p 的向上取整,为什么要 sqrt(p)+2sqrt(p)+2sqrt(p)+2 才能过,写 sqrt(p)+1sqrt(p)+1sqrt(p)+1 会WA on #10 (当然ceil(sqrt(p))ceil(sqrt(p))ceil(sqrt(p)) 也不行)。
WA的提交记录1 || WA的提交记录2
AC的提交记录
我真的不理解, sqrt(p)+1sqrt(p)+1sqrt(p)+1 的写法过了好几道题的。/(ㄒoㄒ)/~~