Conditional Probability Simple
Computer Mathematics
Easy
2 views
Problem Description
A bag has r red and b blue balls. One ball is drawn. Prob it is red.
Input Format
Two integers r b.
Output Format
Reduced fraction.
Constraints
r,b>=0 and r+b>0
Official Solution
Probability = r/(r+b), reduce.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!