#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a==1) cout<<"1"; else{ if(pow(a,b)>pow(10,9)) cout<<"-1"; else cout<<pow(a,b); } }
应输出:
1000000000
他给我来了个:
1e+009