📅  最后修改于: 2022-03-11 14:55:48.987000             🧑  作者: Mango
long long int PowMod(long long int x,long long int n,long long int M)
{
if(n<=1)
return x%M;
long long int res;
res=PowMod(x,n/2,M)%M;
res=(res*res)%M;
if(n%2==1)
res=((res%M)*(x%M))%M;
return res%M;
}