正文
增加 2 行删除 2 行
24 行未改动252627282930313233343540 行未改动24 行未改动int res=1;while(b){if(b&1) res=res*a%mod;a=a*a%mod;b>>=1;}return res;}signed main(){ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);40 行未改动24 行未改动252627282930313233343540 行未改动24 行未改动int res=1;while(b){if(b&1) res=res*a%mod;a=a*a%mod;b>>=1;}return res;}signed main(){ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);40 行未改动