| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135054 | 王金檐 | x的n次方 | C++ | Accepted | 1 MS | 272 KB | 311 | 2025-11-02 12:04:15 |
#include<bits/stdc++.h> using namespace std; int o; long long mi(long long a,int b,int i){ if(i<b){ mi(a*o,b,i+1); }else{ return a; } } int main(){ int x,n; cin>>x>>n; if(n==0){ cout<<1; return 0; } if(x==0){ cout<<0; return 0; } o=x; cout<<mi(x,n,1); return 0; }