90分WA求条
查看原帖
90分WA求条
994259
GGbond_wawdsj楼主2025/7/29 16:54
#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main(){
	cin>>a>>b;
	c=pow(a,b);
	if(c>=pow(2,31)-1){
		cout<<-1;
	}
	else{
		cout<<c;
	}
	return 0;
}

2025/7/29 16:54
加载中...