发布时间: 2016年12月3日 16:34 最后更新: 2016年12月3日 16:34 时间限制: 1000ms 内存限制: 65536M
The input consists of a number of cases. Each case consists of two integers a, b (0 <= a, b <= 13, a + b <=
13). The input is terminated by a = b = −1.
For each case, print the probability of a split of a+b cards so that one opponent has a cards and the other has b
cards in the format as shown in the sample output. You may assume that the remaining cards in the suit are
held by you and your partner. Output the probabilities to 8 decimal places.
2 2 3 3 4 2 −1 −1
2−2 split: 0.40695652 3−3 split: 0.35527950 4−2 split: 0.48447205