Day 3: Basic Probability Puzzles #7
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
A firm produces steel pipes in three plants.
- Plant produces units per day and has a fraction defective output of .
- Plant produces units per day and has a fraction defective output of .
- Plant produces units per day and has a fraction defective output of .
At random, a pipe is selected from the day’s total production and it is found to be defective. What is the probability that it came from plant ?
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