这也能过?
查看原帖
这也能过?
706798
gzxworld楼主2022/11/28 23:00
#include <bits/stdc++.h>
using namespace std;
int main()
{
	long long int a, b;
	cin >> a >> b;
	if(pow(a, b) > pow(10, 9))
	{
		cout << -1;
		return 0;
	}
	cout << (long long int)pow(a, b);
	return 0;
}

《蒟蒻死在了初赛》

2022/11/28 23:00
加载中...