50分求大佬帮助
查看原帖
50分求大佬帮助
845721
yqlyyds楼主2022/12/3 21:02
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    cin>>a>>b;
    a=pow(a,b);
    c=pow(10.0,9.0);
    if(c > a){
    	cout<<-1<<endl;
	}
    else
    	cout<<a;
	return 0;
}
2022/12/3 21:02
加载中...