求调!
查看原帖
求调!
1028448
wyx5楼主2025/8/3 15:07
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a,b;
int main(){
    cin>>a>>b;
    if(pow(a,b)>1000000000){
        cout<<"-1";
    }else{
        cout<<pow(a,b);
    }
    return 0;
}
2025/8/3 15:07
加载中...