Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143737 高楷伦 阿克曼函数 C++ Accepted 151 MS 392 KB 523 2026-01-17 16:28:37

Tests(10/10):


Code:

#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 raw(int x,int y){ if(x==0){ return y+1; } if(x>0&&y==0){ return raw(x-1,1); } if(x>0&&y>0){ return raw(x-1,raw(x,y-1)); } } int main(){ int x,y; cin>>x>>y; cout<<raw(x,y); return 0; }