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