| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143501 | 翁思宸 | x的n次方 | C++ | Accepted | 0 MS | 268 KB | 318 | 2026-01-16 18:35:20 |
//1530 x的n次方 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; long long use(int x,int n){ int s=0; if(n==0){ return 1; } n-=1; return use(x,n)*x; } int main(){ int n,m; cin>>n>>m; cout<<use(n,m); return 0; }