https://nanti.jisuanke.com/t/44330
题意
硬币掷到反面则丢掉一条命 现在有n个人,每个人有k条命,每次掷到正面的概率为p 现在问平局的概率为多少?(也就是全输)
硬币掷到反面则丢掉一条命
现在有n个人,每个人有k条命,每次掷到正面的概率为p
现在问平局的概率为多少?(也就是全输)
思路
两个结局:有一个人胜出或者平局 只要算有一个人赢了的情况,乘n 考虑误差:将回合数设为1000
两个结局:有一个人胜出或者平局
只要算有一个人赢了的情况,乘n
考虑误差:将回合数设为1000
代码 : https://xlorpaste.cn/g22mb4