摘要: 话不多说直接上代码 int Pow(int a,int b){ int ans = 1; int base = a; while(b){ if(b & 1) ans *= base; base *= base; b >>= 1; } return ans; } 需要取模: #define mod 1 阅读全文
posted @ 2020-10-22 16:09 一杯好凉茶 阅读(64) 评论(0) 推荐(0) 编辑