| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144011 | 唐诗阳 | 阿克曼函数 | C++ | Accepted | 155 MS | 392 KB | 511 | 2026-01-18 14:50:35 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int akm(int x,int y){ if(x==0){ return y+1; } else if(y==0){ return akm(x-1,1); } else if(x>0 && y>0){ return akm(x-1,akm(x,y-1)); } } int main(){ int m,n; cin>>m>>n; cout<<akm(m,n); return 0; }