tj
2025-10-12 18:02:45
发布于:广东
0阅读
0回复
0点赞
#include<iostream>
#include<cmath>
#include<algorithm>
#include<queue>
#include<stack>
#include<vector>
#include<cstdio>
#include<unordered_map>
#define ll long long
using namespace std;
const ll N=1e9;
ll a,b;
int main() {
cin>>a>>b;
ll t=1;
while(b--) {
if(N/a<t) {
cout<<-1;
return 0;
}
t*=a;
}
cout<<t;
}
这里空空如也




有帮助,赞一个