摘要: 一、快速幂 递归写法 int quickpow(int a,int b,int c) { if(b==1) return a%n; int t=quickpow(a,b/2,c)%n; t=t*t%n; if(b%2==0) return t; else return t*a%n; } 非递归写法 阅读全文
posted @ 2021-08-16 13:57 Mint-hexagram 阅读(70) 评论(0) 推荐(0) 编辑