南阳理工ACM1076--方案数量
2015-11-26 21:48
155 查看
题目地址:http://acm.nyist.net/JudgeOnline/problem.php?pid=1076
分析:
分析:
<span style="font-size:18px;">#include <stdio.h> int main() { long long a[32][32]; int i,j; int m,n; a[0][0]=0; for (i=1;i<32;i++) { a[0][i]=1; a[i][0]=1; } for (i=1;i<32;i++) { for (j=1;j<32;j++) { a[i][j] = a[i][j-1]+a[i-1][j]; } } while (scanf("%d%d",&m,&n)!=EOF&&(m!=0||n!=0)) printf("%lld\n",a[m] ); return 0; } </span>
相关文章推荐
- WEB笔记-5、字体和文本
- nyoj--767--因子和(模拟)
- 网络链路层
- int function() const; 怎么理解?
- 【SSH项目实战】国税协同平台-29.投诉受理查询
- 104 User SCOTT wants to back out the transactions on the REGIONS table in his schema. As a DBA, whic
- ural 1272. Non-Yekaterinburg Subway
- Objective-C set/get方法
- 基于GUI的简易图像处理系统设计与实现
- C++ htons(), htonl(), ntohs(), ntohl()详解
- warning LNK4099: 未找到 PDB“vc120.pdb”
- HTTP协议详解
- zTree的调用设使用(跨两个系统,两类技术实现的项目案例SpringMVC+Spring+MyBatis和Struts2+Spring+ibatis框架组合)
- zTree的调用设使用(跨两个系统,两类技术实现的项目案例SpringMVC+Spring+MyBatis和Struts2+Spring+ibatis框架组合)
- Win7运行httpd.exe -> ApacheCould not reliably determine the server's fully qualified do main name
- ural 1269. Obscene Words Filter
- 多态实现之--虚方法
- 迭代器和生成器原理
- bpnn——MATLAB工具箱--newff
- 重新编译C6455的CSL库