| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78641 | 石茂诤 | x的n次方 | C++ | Wrong Answer | 0 MS | 276 KB | 203 | 2024-06-23 14:07:18 |
#include<bits/stdc++.h> using namespace std; int f(int x,int n){ if(n==0){ return 1; } return f(x,n-1)*x; } int main(){ int n,x; cin>>x>>n; cout<<f(x,n); return 0; }
------Input------
-2 49
------Answer-----
-562949953421312
------Your output-----
0