ACM篇:Uva 1942-- Paths on a Grid
来源:互联网 发布:软件接口设计说明书 编辑:程序博客网 时间:2024/06/05 09:10
#include <iostream>#include <cstdio>#include <algorithm>#include <cstdlib>using namespace std;unsigned _c(unsigned m, unsigned n){ double ret = 1.0; while (m > 0) ret *= (double)(n--) / double(m--); return (unsigned)(ret+0.5);}int main(){ unsigned x, y; while (scanf("%d%d", &x, &y) && (x || y)) printf("%d\n", _c(min(x, y), x + y)); return 0;}
0 0
- ACM篇:Uva 1942-- Paths on a Grid
- [ACM] POJ 1942 Paths on a Grid (组合)
- Paths on a Grid
- Paths on a Grid
- 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 1942 Paths on a Grid
- poj 1942Paths on a Grid
- POJ 1942--Paths on a Grid
- poj 1942 Paths on a Grid
- 表达式树使用(一)
- Java中的super和this关键字
- TensorFlow入门和示例分析
- 如何快速掌握一门新技术/语言/框架…
- 基于距离变换的图像匹配
- ACM篇:Uva 1942-- Paths on a Grid
- 剑指offer——翻转单词顺序列
- excle处理大数据常用操作
- Android爬坑之旅之FileProvider(Failed to find configured root that contains)
- Orace 检查是否配置最大认证失败次数
- 传智播客关于JAVA中IO流的讲解
- ACM篇:Uva 11988-- Broken Keyboard
- Linux应用层下定时器函数setitimer
- 深入浅出Mybatis-与Spring集成