NOJ/37/main.c
Saturneric 52668c4122 Add.
2020-09-01 00:46:43 +08:00

16 lines
243 B
C

#include <stdio.h>
int ack(int m, int n);
int main(void){
int m,n;
scanf("%d %d",&m,&n);
printf("%d\n",ack(m,n));
return 0;
}
int ack(int m, int n){
if(!n) return ack(m-1,1);
else if(!m) return n+1;
else return ack(m-1,ack(m,n-1));
}