SDUT3889 神奇的函数

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-11-21
  • 2021-12-11
  • 2021-11-14
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-08-30
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案