不!!!只有60分!!!
查看原帖
不!!!只有60分!!!
563217
luogu_orz楼主2023/7/14 15:25
#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    if(pow(a,b)>pow(10,9)){
        cout<<"-1";
    }else{
        cout<<pow(a,b);
    }
    return 0;
}

蒟蒻不会高精度,求dalao教授

2023/7/14 15:25
加载中...