Coin Flip Simulator | Python Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Can we write a program to take as input some number of players and return as output the total number of flips required until each player has a unique signature of heads and tails. For example, if 2 players and one throws H and the other throws T, then it took 1 flip to produce a set of unique signatures. If 3 players and one throws H and two throw T on the first throw, then one of the two T from the first throw throws H and the other T from the first throw throws T on the second throw, then it took 2 flips to produce a set of unique signatures. But generalize so that we can test this against 3, 000, 000, 000 players (for example).

jimperkins
Автор

can you make a martingale script in phyton using that elements?

pilyotuts