E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Poj1306
POJ1306
(组合数公式)
题意:求Cnm分析:组合数公式。C(n,m)=C(n-1,m-1)+C(n-1,m)代码:#include#include#includeusingnamespacestd;constintmaxn=110;doublec[maxn][maxn];intmain(){intn,m;while(scanf("%d%d",&n,&m)!=EOF&&(m||n)){for(inti=0;i<101;i+
Nickqiao
·
2016-04-25 13:37
POJ
算法
POJ1306
(组合数公式)
题意:求Cnm分析:组合数公式。C(n,m)=C(n-1,m-1)+C(n-1,m)代码:#include #include #include usingnamespacestd; constintmaxn=110; doublec[maxn][maxn]; intmain() { intn,m; while(scanf("%d%d",&n,&m)!=EOF&&(m||n)) { for(inti
LMFQYJ
·
2016-04-25 13:00
poj1306
简单题 View Code #include < iostream > #include < cstdio > #include < cstdlib > #include < cstring &
·
2015-11-11 04:06
poj
POJ1306
:Combinations
DescriptionComputingtheexactnumberofwaysthatNthingscanbetakenMatatimecanbeagreatchallengewhenNand/orMbecomeverylarge.Challengesarethestuffofcontests.Therefore,youaretomakejustsuchacomputationgiventhef
libin56842
·
2013-03-12 21:00
ACM
poj
解题报告
POJ1306
组合数学之排列 基础例子(一)
题目GIVEN:5usingnamespacestd;intm,n;intlow,high;inta[105];intgcd(inta,intb){ if(a%b==0)returnb; elsereturngcd(b,a%b); //一开始竟然忘了return,我嚓~~}intmain(){while(scanf("%d%d",&n,&m)&&(n||m)){if(m>n-m)
kg_second
·
2012-08-21 11:00
c
poj1306
Combinations
//poj1306Combinations简单题/*本来想用高精度,后来看数据好小,就直接模拟平时的算法,把上面跟下面大的那一块先约掉不管,然后再算剩余的,这里用了素数分解,可能还有其他方法,不管了,简单题能水就行。*/#include#includeusingnamespacestd;constintinf=1max(m,n-m);i--) { doit(
birdforever
·
2010-08-24 23:00
算法
System
combinations
上一页
1
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他