70分
查看原帖
70分
1291225
yangchenhao123楼主2024/8/7 19:58
#include <bits/stdc++.h>
using namespace std;
int main(){
	long long a,b;
	cin>>a>>b;
	long long sum=pow(a,b);
	if(sum>1000000000){
		cout<<"-1";
	}else{
		cout<<sum;
	}
} 
2024/8/7 19:58
加载中...