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

2025/7/29 17:02
加载中...