Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7551 | 张文曦 | 求x的n次方 | C++ | Wrong Answer | 0 MS | 248 KB | 375 | 2025-05-03 15:21:50 |
#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; int main(){ int x,n,z; cin>>x>>n; z=x; for(int i=1;i<=n;i++){ z=z*x; } cout<<z; return 0; }
------Input------
2 10
------Answer-----
1024
------Your output-----
2048