poj 1942 Paths on a Grid
来源:互联网 发布:pink cat动作数据下载 编辑:程序博客网 时间:2024/06/06 07:18
这是一个简单的高中数学题
用计算机算出他的实际数字
#include<iostream>#include<math.h>#include<iomanip>using namespace std;double comp(unsigned n,unsigned m){ unsigned a=m+n; unsigned b=(m<n?m:n); double cnm=1.0; while(b>0) cnm*=(double)(a--)/(double)(b--); return cnm;}int main(void){ unsigned m,n; while(cin>>m>>n) { if(!m && !n) break; cout<<fixed<<setprecision(0)<<comp(n,m)<<endl; } return 0;}
0 0
- poj 1942 Paths on a Grid
- POJ 1942 Paths on a Grid
- POJ 1942 Paths on a Grid .
- POJ 1942 Paths on a Grid
- poj 1942 Paths on a Grid
- POJ 1942 Paths on a Grid
- POJ 1942 Paths on a Grid
- POJ 1942 Paths on a Grid
- POJ 1942 Paths on a Grid
- POJ 1942 Paths on a Grid
- poj 1942Paths on a Grid
- POJ 1942--Paths on a Grid
- poj 1942 Paths on a Grid
- POJ 1942 Paths on a Grid (水题)
- POJ 1942:Paths on a Grid
- POJ 1942 Paths on a Grid
- 【POJ 1942】 Paths on a Grid
- Paths on a Grid(POJ--1942
- 这个项目碉堡了
- 244 设计模式 -- 行为型 -- 依赖注入
- python eval
- UOJ279 题目交流通道
- 使用CocoaPods(一)为项目配置第三方类库
- poj 1942 Paths on a Grid
- poj_2057 The Lost House(树形dp)
- 1067. Sort with Swap(0,*) (25)-(难)
- Codeforces 763A-Timofey and a tree
- 随心录
- 链表
- javascript实现-表单正则应用
- 请编写一个C函数,该函数可以实现将一个整数转为任意进制的字符串输出
- HDU-1443 Joseph