009

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#include <cstdio>
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(){
    printf("%d\n",ack(3,4));
    putchar('\n');
    return 0;
}
Scroll to Top