permutation problem

1. newcoder take the mobile phone

Idea: That is, there are a white balls and b black balls in the box. Ask the probability of getting a white ball at the kth time: enumerate the number of options for taking out the ball: A(a, a+b), and then find the kth position The number of programs for the white ball: A(a+b-1,a-1)

Probability is the ratio of the two: a/(a+b)

2.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324796317&siteId=291194637