#体彩11选5的期望值!
def jc(x):
a = 1
for i in range(1,x+1):
a*=i
return a
def c(nn,mm):
return jc(nn)/(jc(nn-mm)*jc(mm))
t = 0
jg = [540,78,19,6]
dgl = []
for i in range(0,4):
ii =int( c(5,5-i))
print(ii)
dgl.append(ii/462)
qwz = jg[i] * dgl[i]
print("任选{}的期望值是:{},也就是你花2元钱买任选{},可以赚{:.2f}元钱。".format(5-i,dgl[i],5-i,qwz-2))