题解
2025-01-23 21:51:17
发布于:江苏
0阅读
0回复
0点赞
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
long long n=pow(a,b);
if(n>1000000000||n<0){
cout<<-1;
}else{
cout<<n;
}
return 0;
}
这里空空如也
有帮助,赞一个