Coin (2017 ACM-ICPC 亚洲区(西安赛区)网络赛B题)
Bob has a not even coin, every time he tosses the coin, the probability that the coin's front face up is q/p(q/p<=1/2)。The question is, when Bob tosses the coin kk times, what's the probability that t