| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135045 | 晏莞煜 | x的n次方 | C++ | Wrong Answer | 1 MS | 268 KB | 252 | 2025-11-02 11:55:30 |
#include<iostream> using namespace std; long long sum=1; int fd(int x,int n){ if(x==0){ return 0; } if(n==0){ return sum; }else{ sum*=x; n--; fd(x,n); } } int main(){ int x,n; cin>>x>>n; cout<<fd(x,n); return 0; }
------Input------
-2 49
------Answer-----
-562949953421312
------Your output-----
0