标签:com out nbsp src eth alt scan div 分享
#include <iostream> #include <cstdio> using namespace std; int a,b; long long qp(int a,int b) { int t=1;int y=a; while (b) { if (b&1) t=t*y;//whether obb or not y=y*y; b=b>>1; //cout << a << " " << b << " " << t << " " << y << endl; } return(t); } int main() { scanf("%d %d",&a,&b); printf("%lld",qp(a,b)); }
标签:com out nbsp src eth alt scan div 分享
原文地址:http://www.cnblogs.com/mczhuang/p/7085590.html