摘要: 思路:二分+位运算 #include#include#include#includeusing namespace std;int power(int a,int b){ int r=1,base=a;//r存结果,base存每一次运算的乘积 while(b!=0) { if (b&1) r... 阅读全文
posted @ 2016-11-01 20:01 2000xyy 阅读(81) 评论(0) 推荐(0) 编辑