Paths on a Grid
来源:互联网 发布:如何查看ftp的端口号 编辑:程序博客网 时间:2024/05/01 11:04
http://poj.org/problem?id=1942
#include<map>#include<set>#include<list>#include<cmath>#include<ctime>#include<deque>#include<stack>#include<bitset>#include<cstdio>#include<vector>#include<cstdlib>#include<cstring>#include<iomanip>#include<numeric>#include<sstream>#include<utility>#include<iostream>#include<algorithm>#include<functional>using namespace std ;unsigned long long n , m , temp , sum = 0 , ans = 0 , i; int main(){while( scanf( "%llu%llu" , &n , &m ) != EOF ){if( !n && !m )break ;ans = 1 ;if( n > m )swap( n , m ) ;sum = n + m ;for( i = 1 ; i <= n ; ++i ){ans = ans * ( sum - i + 1 ) / i ;}printf( "%llu\n" , ans ) ;} return 0;}
- Paths on a Grid
- Paths on a Grid
- Paths on a Grid
- pku1942 Paths on a Grid
- pku1942-Paths on a Grid
- poj1942 Paths on a Grid
- poj1942 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 Paths on a grid
- POJ 1942 Paths on a Grid
- POJ 1942 Paths on a Grid
- HDU1509-priority_queue
- win7防火墙开放某个端口
- XFdtd 7.3.2发布增强生物电磁学中的核磁共振功能
- xml的简单应用--读与写
- SpecDD:混合的敏捷开发方法模型概述
- Paths on a Grid
- HDU 1233 还是畅通工程
- 用16进制表示的颜色代码表
- modelsim 仿真中的问题集
- java 作用域 public private default protected 的差别
- 关于csdn的作用
- setInterval 和 setTimeout 怎样停止
- &沙滩啤酒win7主题&【rmzt】
- JQuery的学习:JQueryAjax的学习