喵帕斯之天才算数少女

代码:
#include<stdio.h>
int C(int m,int n)
{
int y;
if(m= =0) return n+1;
else if(m>0&&n==0) return C(m-1,1);
else if(m>0&&n>0)
{
y=C(m,n-1);
return C(m-1,y);
}
}
int main()
{
int m,n,x;
while(scanf("%d %d",&m,&n)!=EOF)
{
x=C(m,n);
printf("%d\n",x);
}
return 0;
}

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-09-15
  • 2021-08-23
  • 2021-11-06
猜你喜欢
  • 2021-05-23
  • 2021-12-29
  • 2021-09-14
  • 2021-12-18
相关资源
相似解决方案