C++复制ll power(ll x,ll y,const ll mod) { ll ans=1; while(y) { if(y&1) { ans=ans*x%mod; } x=x*x%mod; y>>=1; } return ans; }