快速幂
#include<cstdio>
#define int long long
int a,b,p;
inline double power(int a,int b){
int ans=1;
for(;b;b>>=1){
if(b&1) ans=ans*a;
a=a*a;
}
return ans;
}
signed main(){
scanf("%lf%lf",&a,&b);
printf("%lf",power(a,b));
return 0;
}
#include<cstdio>
#define int long long
int a,b,p;
inline double power(int a,int b){
int ans=1;
for(;b;b>>=1){
if(b&1) ans=ans*a;
a=a*a;
}
return ans;
}
signed main(){
scanf("%lf%lf",&a,&b);
printf("%lf",power(a,b));
return 0;
}