@bintou
2018-06-10T09:27:17.000000Z
字数 107
阅读 1471
未分类
```int quick_pow(int a, int k)
{
int res = 1;
while( k > 0)
{
if ( (k % 2) == 1 )
res = res * a;
a *= a;
k = k / 2;
}
return res;
}
```