标签:pre int 模板 快速 style color while col 竞赛
int ans=1; while(n) { if(n&1) ans=ans*x; x*=x; n>>=1; }
求x^n
快速幂竞赛模板
原文地址:https://www.cnblogs.com/Tidoblogs/p/11219885.html