| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130199 | 黄枳润 | x的n次方 | C++ | Accepted | 2 MS | 268 KB | 459 | 2025-09-08 20:04:51 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; long long g(long long x,long long y){ long long sum=1; for(int i=1;i<=y;i++){ sum*=x; } return sum; } int main(){ long long a,c; cin>>a>>c; cout<<g(a,c); return 0; }