A deck of cards contains
A card is chosen uniformly randomly from the deck and removed. A second card is then chosen uniformly randomly from the cards remaining and removed.
If both cards are red, they are discarded.
If both cards are black, they are both put back in the deck.
If they are different colours, the red card is put back in the deck and the black card is discarded.
Play ends when all the remaining cards in the deck are the same colour and let
You are given
Find
一副牌中含有
若两张牌都是红色的,则弃置这两张牌。
若两张牌都是黑色的,则将这两张牌放回牌堆。
否则,将红色的牌放回牌堆,并弃置黑色的牌。
如果牌堆中只剩一种颜色的牌,取牌过程立刻终止。记
求
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。