题解
2025-09-05 19:39:05
发布于:浙江
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
if(pow(n,m)>1e9){
cout<<-1;
}
else {
int s=1;
for(int i=1;i<=m;i++){
s*=n;
}
cout<<s;
}
return 0;
}
这里空空如也
有帮助,赞一个