P124 第47题 组合数
来源:互联网 发布:保护我们的java源码 编辑:程序博客网 时间:2024/06/17 02:18
#include<stdio.h>int comm(int n,int k){if(n<k)return 0;else if(n==k||k==0)return 1;elsereturn comm(n-1,k)+comm(n-1,k-1);}int main(){int n,k;while(1){printf("put n&k");scanf("%d%d",&n,&k);printf("%d\n",comm(n,k));}return 0;}
0 0
- P124 第47题 组合数
- P124 第39题
- P124第40题
- P124第41题
- P124第42题
- P124第43题
- P124第44题
- P124第45题
- P124第46题
- P124第39题
- P124第40题
- P124第41题
- P124第45题
- P124 第40题 求和
- P124 第46题 Fibonacci
- P124 第44题 成绩
- P124 第48题 排序
- p124 第三章 第29题 潘璠
- jQuery使用的时候报undefined a错误的解决方案
- Android Property实现介绍
- 简单的MySQL数据库复习总结
- 日经社説 20150522 民の知恵で農地の集約促せ
- 函数名与函数指针
- P124 第47题 组合数
- 机器学习算法(二):决策树算法
- 如何开启Centos6.4系统的SSH服务
- mysql存储过程
- cs106b DigitSum recursive implementation demo
- Pattern类和Matcher类
- 关于UIImageView的显示问题
- 留白和固执
- 【JavaScript】纯粹javascript无任何插件的兼容IE6的模态框modal