50pts求调
查看原帖
50pts求调
1364655
fc1st楼主2025/8/29 12:16
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    if(pow(a,b)>10e9)
        cout<<-1;
    else
        cout<<pow(a,b);
    return 0;
}
2025/8/29 12:16
加载中...