概率,谁能告诉我这个怎么求概率Time goes by.And at the exact days that Bob has counted out atprobability II,Alice is touched by Bob and she is willing to be Bob's girlfriend.But before this,Alice decided to test the Bob's ability.Alice al

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 02:05:02
概率,谁能告诉我这个怎么求概率Time goes by.And at the exact days that Bob has counted out atprobability II,Alice is touched by Bob and she is willing to be Bob's girlfriend.But before this,Alice decided to test the Bob's ability.Alice al
xUOGW&'@lH^*DT=RzlOYB}3RBDdŤM?@T,`\zjx7,St{oųJڏw?$G{Yk-9ng3/HM2E}ǯЦwW:NqeGBd4C.x$33]F8حiD uU]Gܯ8 cx(!g~ž eV!\+(ISI-GŔ7kL%0(96ՈJޢI jhfJ>#8C \9ϴjRjpAΨs̰Ơ`12ܟE[9`M 3ll7sgX)X]9$0uC 5P*G dQ5ѨEo| @5}CfL]L`T8YXH0.UL] fFGH_42U̐anj,T%˃iЊ%ۓ5=ܻyhƄ}GL?®rY>[K@8aȡď=KY WBxK/C@@P)åL\i!ܫI2Wt'`[c6n0l=GQ+}Z?f yg/+?BʖeKta+y1ZJj]ٓFܶqx8%GP2Pvyrt[$;v+N(봒7}2| i:/]>LN  Ah{r~g{+U)!;xx~oY{#o-`}~)&g@`?\Xm@%g86 yGz oMK,, +O

概率,谁能告诉我这个怎么求概率Time goes by.And at the exact days that Bob has counted out atprobability II,Alice is touched by Bob and she is willing to be Bob's girlfriend.But before this,Alice decided to test the Bob's ability.Alice al
概率,谁能告诉我这个怎么求概率
Time goes by.And at the exact days that Bob has counted out atprobability II,Alice is touched by Bob and she is willing to be Bob's girlfriend.But before this,Alice decided to test the Bob's ability.Alice also likes probability very much.So she asked Bob a probability question:
There areNballs in a bag.They are in red color or blue.But you don't know the exact the sum of red balls is.So you can assume the sum of the red ballsSr( 0 ≤Sr≤N) probabilitytis equal.You getmballs from the bag,and you find in themballs there areqred balls andm-qblue balls.So what is the expection of probability that if you then (after get out themballs) get another ball in the bag and find the ball is blue?
Bob,as we know,is good at probability.So he solves the problem without thinking even just after the Alice has asked him.Alice believes Bob is a genius.They are together!
What a happy ending!
What importance the math is!Can you solve Alice's problem?
Input
There are several test cases in the input file.Each test case contains only one line with three integersN,mandq( 2 ≤N≤ 10000,0 ≤m≤N-1,0 ≤q≤m).
Output
For each test case,output the exception of probability in a single line.The number should be rounded to four decimal places.
Sample Input
3 0 0
Sample output
0.5000

概率,谁能告诉我这个怎么求概率Time goes by.And at the exact days that Bob has counted out atprobability II,Alice is touched by Bob and she is willing to be Bob's girlfriend.But before this,Alice decided to test the Bob's ability.Alice al
时间流逝,某一天,Bob接触到了概率II,Alice被Bob感动了,愿意做他的女朋友,但是首先,她想先考验一下Bob的能力.因为Alice也很喜欢概率,所以她问Bob一个关于概率的问题:
袋子中有N个小球(红色或者蓝色),但是你不知道每种颜色具体的小球个数.所以,你可以假设红色的小球的个数为Sr(0