Cody

Problem 226. What are the odds?

Two numbers, A and B are drawn randomly and uniformly on [-R,R]. What is the probability that A*B < A+B. Your function should take one variable, R, and return the probability to within 100*eps. For example, if R = 1/2, then the probability should be:

0.560930216216329

Solution Stats

37.5% Correct | 62.5% Incorrect
Last Solution submitted on Feb 24, 2020

Problem Comments

Problem Recent Solvers20

Suggested Problems

More from this Author6

Problem Tags