双色球彩票用变量表示的算法或公式?

2022-11-11 21:20发布

1,代码中有错误 for x=j+1 to 31 》》》》for x=k+1 to 31---------------------------------

1,代码中有错误 for x=j+1 to 31 》》》》for x=k+1 to 31---------------------------------
3条回答
2022-11-11 21:27
1,代码中有错误
for x=j+1 to 31 》》》》for x=k+1 to 31
-------------------------------------------
你的意思就是算位置,既然是组合,肯定就用组合公式推导了。
反推:(为少打点字,以6选3为例)
k为6
公式C(m,n)为m选n组合

f(x,y,z)=C(6,3)-[ C((k-x),3) + C((k-y),2) + C((k-z),1) ]

正推就自己推吧!

Mother asked .
A. were there any cheaper shoes
B. there are some cheaper shoes
C. if there were any cheaper shoes
D. if there are any cheaper shoes

一周热门 更多>