| 记录编号 | 593935 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 3777.[CSP 2022J]乘方 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.031 s | ||
| 提交时间 | 2024-09-22 08:53:35 | 内存使用 | 3.60 MiB | ||
#include<bits/stdc++.h>
using namespace std;
int main()
{freopen("csp2022pj_pow.in","r",stdin);
freopen("csp2022pj_pow.out","w",stdout);
long int a,b;
cin>>a>>b;
if(pow(a,b)<1000000000) cout<<int(pow(a,b));
else cout<<"-1";
fclose(stdin);
fclose(stdout);
return 0;
}