#E00621. Ackermann 函数
Ackermann 函数
定义函数 ,满足
$$ A(m, n) = \begin{cases} n + 1, & m = 0 \\ A(m - 1, 1), & n = 0 \\ A(m - 1, A(m, n - 1)), & {\textrm{Otherwise}} \end{cases}$$输入 和 ,输出
3 5
253
定义函数 A(m,n),满足
$$ A(m, n) = \begin{cases} n + 1, & m = 0 \\ A(m - 1, 1), & n = 0 \\ A(m - 1, A(m, n - 1)), & {\textrm{Otherwise}} \end{cases}$$输入 m 和 n,输出 A(m,n)
3 5
253
By signing up a ArchDevil C Training Camp universal account, you can submit code and join discussions in all online judging services provided by us.