ll qmod(ll x,ll n)
{
x%=mod;
ll res=1;
while(n)
{
if(n%2)res=res*x%mod;
x=x*x%mod;
n/=2;
}
return res;
}
求幂取余
猜你喜欢
转载自blog.csdn.net/qq_42825221/article/details/82791540
今日推荐
周排行