提交时间:2024-03-01 16:01:40
运行 ID: 42572
#include<iostream> using namespace std; int ack(int m,int n){ if(m==0) return n+1; else if(n==0) return ack(m-1,1); else return ack(m-1,ack(m,n-1)); } int main() { int x,y; cin>>x>>y; cout<<ack(x,y); return 0; }