摘要: 一.快速幂模板 int Powermod(int a,int b,int MOD) { int t=1; while (b>0) { if (b%2==1) t=(t*a)%MOD; b/=2; a=(a*a)%MOD; } return t; } //(a^b)%MOD View Code 参考: 阅读全文
posted @ 2016-10-18 15:41 Vincent_hwh 阅读(416) 评论(0) 推荐(0) 编辑