首页 > TAG信息列表 > umax

combination

C52 5*4/2*1(m!)/(n!*(m-n)!)=(m*(m-1)*(m-2)*…*(m-n+2)*(m-n+1))/(n!)= ((m-n+1)/1)*((m-n+2)/2)*((m-n+3)/3)*…*((m-n+n)/n)= ∏((m-n+k)/k)【k=1,2,3,…,n】 func cn(n, k u) u { if k > (n>>1) { k = n - k } numerator := u(1) umax := u(0) umax -