int poww(int a, int b) {
int ans = 1, base = a;
while (b != 0) {
if (b & 1 != 0)
ans *= base;
base *= base;
b >>= 1;
}
return ans;
}
标签:turn base log 快速 class body ase gpo while
int poww(int a, int b) {
int ans = 1, base = a;
while (b != 0) {
if (b & 1 != 0)
ans *= base;
base *= base;
b >>= 1;
}
return ans;
}
标签:turn base log 快速 class body ase gpo while
原文地址:https://www.cnblogs.com/smallocean/p/8729420.html