哪位大佬帮我看看这宝了个贝的代码O.o
查看原帖
哪位大佬帮我看看这宝了个贝的代码O.o
1558578
liuqinghao1楼主2024/11/2 22:06

宝了个贝的 O.o

#include<iostream>
#include<cmath>
using namespace std;
int main(){
  long long a,b,c=1e9;
  cin>>a>>b;
  if(pow(a,b)>c)cout<<"-1";
  else cout<<a*b;
  return 0;
}

谢谢Q.Q

2024/11/2 22:06
加载中...