| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143500 | 翁思宸 | x的n次方 | C++ | Wrong Answer | 0 MS | 272 KB | 312 | 2026-01-16 18:34:42 |
//1530 x的n次方 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int 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; }
------Input------
-2 49
------Answer-----
-562949953421312
------Your output-----
0