八十tps求助悬关
查看原帖
八十tps求助悬关
1008115
cinemaaa楼主2023/9/5 15:13
#include<bits/stdc++.h>
using namespace std;
int main()
{
   long long a,b,s=1;
   cin>>a>>b;
   for(int i=0;i<b;i++) s*=a;
   if(s<=pow(10,9) && s>0)
   cout<<fixed<<setprecision(0)<<s;
   else cout<<-1;
}
2023/9/5 15:13
加载中...