...纸牌1到K,代表数字1到13,从中随意抽取任意张牌,数字之和不小于54...
发布网友
发布时间:2024-10-24 17:12
我来回答
共5个回答
热心网友
时间:2024-11-17 15:14
针对此题共同探讨,不一定正确
分析:数字之和要大于或等于54,那么从最大数字13开始,13+12+11+10+9=55,得到最少可以取5张;另外分析最多情况,那就是全部一起抽取。:
情况1:抽取5张,13+12+11+10+9=55;13+12+11+10+8=54;只有2种情况满足,概率2/(C13选5)=2*(5*4*3*2*1)/(13*12*11*10*9)=1/643
情况2:抽取6张,使用计算机得到
[[1, 7, 10, 11, 12, 13], [1, 8, 9, 11, 12, 13], [1, 8, 10, 11, 12, 13], [1, 9, 10, 11, 12, 13], [2, 6, 10, 11, 12, 13], [2, 7, 9, 11, 12, 13], [2, 7, 10, 11, 12, 13], [2, 8, 9, 10, 12, 13], [2, 8, 9, 11, 12, 13], [2, 8, 10, 11, 12, 13], [2, 9, 10, 11, 12, 13], [3, 5, 10, 11, 12, 13], [3, 6, 9, 11, 12, 13], [3, 6, 10, 11, 12, 13], [3, 7, 8, 11, 12, 13], [3, 7, 9, 10, 12, 13], [3, 7, 9, 11, 12, 13], [3, 7, 10, 11, 12, 13], [3, 8, 9, 10, 11, 13], [3, 8, 9, 10, 12, 13], [3, 8, 9, 11, 12, 13], [3, 8, 10, 11, 12, 13], [3, 9, 10, 11, 12, 13], [4, 5, 9, 11, 12, 13], [4, 5, 10, 11, 12, 13], [4, 6, 8, 11, 12, 13], [4, 6, 9, 10, 12, 13], [4, 6, 9, 11, 12, 13], [4, 6, 10, 11, 12, 13], [4, 7, 8, 10, 12, 13], [4, 7, 8, 11, 12, 13], [4, 7, 9, 10, 11, 13], [4, 7, 9, 10, 12, 13], [4, 7, 9, 11, 12, 13], [4, 7, 10, 11, 12, 13], [4, 8, 9, 10, 11, 12], [4, 8, 9, 10, 11, 13], [4, 8, 9, 10, 12, 13], [4, 8, 9, 11, 12, 13], [4, 8, 10, 11, 12, 13], [4, 9, 10, 11, 12, 13], [5, 6, 7, 11, 12, 13], [5, 6, 8, 10, 12, 13], [5, 6, 8, 11, 12, 13], [5, 6, 9, 10, 11, 13], [5, 6, 9, 10, 12, 13], [5, 6, 9, 11, 12, 13], [5, 6, 10, 11, 12, 13], [5, 7, 8, 9, 12, 13], [5, 7, 8, 10, 11, 13], [5, 7, 8, 10, 12, 13], [5, 7, 8, 11, 12, 13], [5, 7, 9, 10, 11, 12], [5, 7, 9, 10, 11, 13], [5, 7, 9, 10, 12, 13], [5, 7, 9, 11, 12, 13], [5, 7, 10, 11, 12, 13], [5, 8, 9, 10, 11, 12], [5, 8, 9, 10, 11, 13], [5, 8, 9, 10, 12, 13], [5, 8, 9, 11, 12, 13], [5, 8, 10, 11, 12, 13], [5, 9, 10, 11, 12, 13], [6, 7, 8, 9, 11, 13], [6, 7, 8, 9, 12, 13], [6, 7, 8, 10, 11, 12], [6, 7, 8, 10, 11, 13], [6, 7, 8, 10, 12, 13], [6, 7, 8, 11, 12, 13], [6, 7, 9, 10, 11, 12], [6, 7, 9, 10, 11, 13], [6, 7, 9, 10, 12, 13], [6, 7, 9, 11, 12, 13], [6, 7, 10, 11, 12, 13], [6, 8, 9, 10, 11, 12], [6, 8, 9, 10, 11, 13], [6, 8, 9, 10, 12, 13], [6, 8, 9, 11, 12, 13], [6, 8, 10, 11, 12, 13], [6, 9, 10, 11, 12, 13], [7, 8, 9, 10, 11, 12], [7, 8, 9, 10, 11, 13], [7, 8, 9, 10, 12, 13], [7, 8, 9, 11, 12, 13], [7, 8, 10, 11, 12, 13], [7, 9, 10, 11, 12, 13], [8, 9, 10, 11, 12, 13]]
共有87种情况
概率87/(C13选6)=87*(6*5*4*3*2*1)/(13*12*11*10*9*8)=29/572
情况3:选择7张,计算机得到:458种,概率458/(C13选7)=458*(7*6*5*4*3*2*1)/(13*12*11*10*9*8*7)=228/858
情况4:选择8张,计算机得到:821种,概率821/(C13选8)=821*(8*7*6*5*4*3*2*1)/(13*12*11*10*9*8*7*6)=37/58
情况5:选择9张,计算机得到:479种,概率301/(C13选9)=662*(9*8*7*6*5*4*3*2*1)/(13*12*11*10*9*8*7*6*5)=662/715
情况6:选择10张,计算机得到:286种,概率286/(C13选10)=286*(10*9*8*7*6*5*4*3*2*1)/(13*12*11*10*9*8*7*6*5*4)=100%
情况7:选择11张,计算机得到:78种,概率78/(C13选11)=78*(11*10*9*8*7*6*5*4*3*2*1)/(13*12*11*10*9*8*7*6*5*4*3)=100%
情况8:选择12张,计算机得到:13种,概率13/(C13选12)=13*(12*11*10*9*8*7*6*5*4*3*2*1)/(13*12*11*10*9*8*7*6*5*4*3*2)=100%
情况9:选择13张,计算机得到:1种,概率/(C13选13)=1*(13*12*11*10*9*8*7*6*5*4*3*2*1)/(13*12*11*10*9*8*7*6*5*4*3*2*1)=100%
另外附上python代码
import itertools
lists = [1,2,3,4,5,6,7,8,9,10,11,12,13]
reslut =[]
#从lists列表中选择5个,(是遍历的方式选择)
new_list = itertools.combinations(lists, 5)
for i in new_list:
s = 0
#将得到元组进行求和
for x in i:
s += x
if s>53:
reslut.append(i)
print(reslut)
print(len(reslut))
热心网友
时间:2024-11-17 15:17
这个题目是不是有问题?两张牌的数字之和最大是26,不可能大于等于54,所以概率是0。
热心网友
时间:2024-11-17 15:11
代表数字1到13,从中随意抽取任意张牌,数字之和不小于54的概率是多少?结果以分数形式表示。
答:因此抽取的张数不确定,概率也是不确定的。概率可能是100%(也就是全部抽取)
热心网友
时间:2024-11-17 15:11
因此抽取的张数不确定,概率也是不确定的。概率可能是100%(也就是全部抽取)
热心网友
时间:2024-11-17 15:09
任意几张呢,没有描述清楚,建议重新提问。。