10560: Election
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:2
Solved:0
Description
There is a election between 2 persons. The election has p+q rounds. In each round, either person A or person B gets one vote. The probility that A gets a vote is equal to the probility that B gets a vote . Finally, person A gets p votes and person B gets q votes(p > q). Can you figure out the probability that in any round person A gets more votes than person B.
Input
Multiple cases. Every case takes a line with the positive integers p and q(p > q, p and q are 32-bit-signed integers).
Output
One case a line.Print the probability, with exactly 6 digits after the decimal point.
Sample Input Copy
2 1
Sample Output Copy
0.333333