3 lines
110 B
Python
3 lines
110 B
Python
def ack1(M, N):
|
|
return (N + 1) if M == 0 else (
|
|
ack1(M-1, 1) if N == 0 else ack1(M-1, ack1(M, N-1)))
|