V. 阿克曼(Ackermann)函数

    Type: RemoteJudge 1000ms 128MiB

阿克曼(Ackermann)函数

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.

题目描述

阿克曼(Ackermann)函数 A(m,n)A(m,n) 中,m,nm, n 定义域是非负整数(m3m \le 3n10n \le 10),函数值定义为:

A(m,n)=n+1\mathit{A}(m,n)=n+1;(m=0m=0 时)。

A(m,n)=A(m1,1)\mathit{A}(m,n)=\mathit{A}(m-1,1);(m>0m>0n=0n=0 时)。

A(m,n)=A(m1,A(m,n1))\mathit{A}(m,n)=\mathit{A}(m-1,\mathit{A}(m,n-1));(m,n>0m,n>0 时)。

输入格式

mmnn

输出格式

函数值。

2 3
9

2025年CSP-J函数与递归

Not Claimed
Status
Done
Problem
29
Open Since
2025-8-7 0:00
Deadline
2025-9-7 23:59
Extension
24 hour(s)