pow错解求hack
查看原帖
pow错解求hack
687685
not_so_littlekayen楼主2024/9/28 22:05
#include <bits/stdc++.h>
using namespace std;

int main()
{
	long long maxn = pow(10, 9), a, b, ans;
	cin >> a >> b;
	ans = pow(a, b);
	if(ans < 0||ans>maxn)cout << -1;
	else printf("%lld", ans);
	return 0;
 } 
2024/9/28 22:05
加载中...