📅  最后修改于: 2022-03-11 14:54:53.997000             🧑  作者: Mango
local function Ackermann(m, n)
if m == 0 then
return (n + 1)
elseif n == 0 then
Ackermann(m - 1, 1)
else
Ackermann(m - 1, Ackermann(m, n - 1))
end
end