long long quickmul(int a,int b)
{
long long ret=1;
for(; b ; b >>=1 ,a =(long long) a * a % mod)
if((b & 1))
ret=ret * a % mod;
return ret;
}
快速幂--模板
猜你喜欢
转载自blog.csdn.net/qq_41603898/article/details/81736032
今日推荐
周排行