Cody

Solution 2158669

Submitted on 13 Mar 2020 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(abs(need2(1)-1)<0.001)

mychance = 1

2   Pass
assert(abs(need2(2)-0.6667)<0.001)

mychance = 0.666666666666667

3   Pass
assert(abs(need2(10)-0.5263)<0.001)

mychance = 0.526315789473684

4   Pass
assert(abs(need2(100)-0.5025)<0.001)

mychance = 0.502512562814070

5   Pass
assert(abs(need2(1000)-0.5003)<0.001)

mychance = 0.500250125062531

Suggested Problems

More from this Author100