3889=神奇的函数

 1 #include<stdio.h>
 2 int recursive(int n,int m)
 3 {
 4     if(m==1||n==1)return 1;
 5     else return recursive(n-1,m)+recursive(n,m-1);
 6 }
 7 int main()
 8 {
 9     int a,b;//直接上代码,看不懂请刨坑自埋。
10     while(scanf("%d %d",&a,&b)!=EOF)
11     {
12         printf("%d
",recursive(a,b));
13     }
14     return 0;
15 }
原文地址:https://www.cnblogs.com/Angfe/p/10492629.html