| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75362 | sh25_shenpy | 阿克曼(Ackmann)函数 | C++ | 通过 | 0 MS | 248 KB | 252 | 2025-12-05 16:39:34 |
#include<bits/stdc++.h> using namespace std; int a(int m,int n) { if(m==0) return n+1; if(m>0&&n==0) return a(m-1,1); if(m*n>0) return a(m-1,a(m,n-1)); } int main(){ int m,n; cin>>n>>m; cout<<a(n,m); return 0; }