Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147010 陈奕涵 阿克曼函数 C++ Accepted 173 MS 400 KB 311 2026-02-02 11:01:08

Tests(10/10):


Code:

#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int akm(int m,int n){ if(m==0) return n+1; else if(m>0&&n==0)return akm(m-1,1); else return akm(m-1,akm(m,n-1)); } int main(){ int a,b; cin>>a>>b; cout<<akm(a,b); return 0; }