这题数据怎么变水了
查看原帖
这题数据怎么变水了
388691
ETO_leader楼主2023/7/14 13:48

My code:

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a,b;
int main(){
	ios::sync_with_stdio(false);
	cin>>a>>b;
	if (pow(a,b)<=1000000000) cout<<fixed<<setprecision(0)<<pow(a,b);
	else cout<<-1;
	return 0;
}

直接用pow都能过) submission:door

2023/7/14 13:48
加载中...