Ideal Random Number Generator
Practice
4.3 (7 votes)
Mathematics
Probability and statistics
Easy
Problem
85% Success 8460 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code

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

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
Tags:
Easy
Points:20
6 votes
Tags:
MathematicsOpenApprovedEasy
Points:20
4 votes
Tags:
ProbablityException handlingGrammar-VerifiedProbability and StatisticsHiringBasic ProbabilityReadyMathematicsApprovedEasyProbability
Editorial

No editorial available for this problem.