Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
220 | 刘家源 | x的n次方 | C++ | Runtime Error | 31 MS | 65780 KB | 304 | 2022-07-22 10:13:06 |
#include<iostream> #include<cstdio> #include<string> #include<iomanip> #include<cmath> using namespace std; int akm(int m,int n) { if(m==0) return 1; else return akm(m-1,akm(m,n-1)); } int main(){ int p,y; cin>>p>>y; cout<<akm(p,y); return 0; }
Runtime Error:Segmentation fault