Ideal Random Number Generator

4.3

7 votes
Mathematics, Probability and Statistics, Easy
Problem

Assume there is an Ideal Random Number Generator which generates any real number between 0 and given integer. Two numbers are generated from the above generator using integer A and B, let's assume the numbers generated are X1 and X2. There is another integer C. What is the probability that summation of X1 and X2 is less than C.

Input Format
A single line containing three integers A,B,C
1 <= A,B,C <= 100000

Output Format
Print the probability in form of P/Q

Problem Setter: Practo Tech Team

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

For example if A and B are 1. Then the random number generated will be any real number between 0 - 1.

0 < x1 < 1 0 < x2 < 1

If C is also 1, then you need to determine the probability of that x1 + x2 < C.

Editor Image

?