请求添加数据点
查看原帖
请求添加数据点
1038495
wwwwwu楼主2024/3/3 10:33
#include <bits/stdc++.h>
using namespace std;

int main(){
	int a,b;
	cin>>a>>b;
	int ans=pow(a,b);
	if(ans<0) puts("-1");
	else cout<<ans;
	return 0;
}

这个代码交上去可以AC 实则样例

2 30

-1

代码输出的是:1073741824

@小粉兔

2024/3/3 10:33
加载中...