Day 2: Basic Probability Puzzles #2
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
For a single toss of fair (evenly-weighted) dice, find the probability that the values rolled by each die will be different and their sum is .
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