60分,求调
查看原帖
60分,求调
1400450
wangshengchen楼主2024/10/7 22:20
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    int a,b;
    cin>>a,b;
    if(pow(a,b)==1&&a!=1&&b!=1) cout<<-1;
    else cout<<pow(a,b);
	return 0;
}
2024/10/7 22:20
加载中...