| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157037 | 郑雨心 | x的n次方 | C++ | Wrong Answer | 1 MS | 280 KB | 187 | 2026-07-13 11:06:50 |
#include <iostream> using namespace std; int cf(int x,int n){ if(n==1){ return x; } else{ return cf(x,n-1)*x; } } int main(){ int y,a; cin>>y>>a; cout<<cf(y,a); }
------Input------
-2 49
------Answer-----
-562949953421312
------Your output-----
0