大佬看看是不是侥幸AC
查看原帖
大佬看看是不是侥幸AC
1179028
fuhaozhe1楼主2024/7/31 13:00

rt

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	int c=pow(a,b);
	if(c<=-2147483648)
	{
		cout<<-1;
	}
	else
	{
		cout<<c;
	}
	return 0;
}
2024/7/31 13:00
加载中...