Day 2: Basic Probability Puzzles #4
Submissions will no longer be placed on the leaderboard. You may still attempt this problem for practice.
Objective
In this challenge, we practice calculating probability.
Task
contains red balls and black balls.
contains red balls and black balls.
One ball is drawn from the , and balls are drawn from . Find the probability that balls are black and ball is red.
Output Format
In the editor below, submit your answer as Plain Text in the form of an irreducible fraction , where and are both integers.
Your answer should resemble something like:
3/4
(This is NOT the answer, just a demonstration of the answer format.)
xxxxxxxxxx
11
1
2
3
4
5
6
int main() {
7
8
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
9
return 0;
10
}
11