这个又是怎么对的?
查看原帖
这个又是怎么对的?
1032333
Barryb楼主2024/6/9 18:50
#include<bits/stdc++.h>
using namespace std;
int main()
  {
	int n,m;
	cin>>n>>m;
	if(pow(n,m)>pow(10,9))
		cout<<-1<<endl;
   else
		cout<<(int)pow(n,m)<<endl;
	return 0;
} 
2024/6/9 18:50
加载中...