Ackerman函数
Background
叶子离去,是风的追求,还是树不挽留?
Description
计算Ackerman函数值:
Ack(m, n) = n+1 (m=0); Ack(m-1, 1) (n=0); Ack((m-1),Ack(m, n-1)) (m, n > 0)
Format
Input
一行两个数,即m和n,其中0<=m<=3,0<=n<=11。
Output
输出Ack(m,n)的值.
Sample
Input
0 1
Output
2
Limitation
1s, 256000KiB for each test case.
Hint
Source
CDQZ TEST