RYIP在线题库
首 页   >   习题练习   >   提交
Problem1988--函数的递归间接调用

1988: 函数的递归间接调用

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

【 Description 】

已知函数f(n)=g(n-1,f(n-1)),其中g(i,j)=i+j  , f(0)=1 ,现在输入n的值,求f(n)的值

【 Sample Input 】

2

【 Sample Output 】

2

【 Source/Category 】

递归 TX