摘要:
int combination( int n, int k){ if(!k || k==n || k<=1&& n<=1) return 1; return combi(n-1,k) + combi(n-1,k-1);}C(n,k) = C(n-1,k) + C(n-1,k-1);组合数的奇偶(摘自百度百科)对组合数C(n,k) (n>=k):将n,k分别化为二... 阅读全文
posted @ 2009-12-16 01:53
zedzhao
阅读(113)
评论(0)
推荐(0)

浙公网安备 33010602011771号