Ackman函数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
Ackman函数的定义如下
$$\text{ack}(m,n)= \left\{ \begin{aligned} n+1 & & {m=0} \\ \text{ack}(m-1,1) & & {n=0} \\ \text{ack}(m-1,\text{ack}(m,n-1) & & {\text{otherwise}} \end{aligned} \right. $$输入格式
一行包含两个正整数 。
输出格式
2 5
13
数据范围