Cody

Solution 1773598

Submitted on 4 Apr 2019
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   Fail
N = 1; P=1; M=0; hope_correct = 1; assert(fate(N,P,M)>hope_correct*0.999)

hope = 0.3675

Assertion failed.

2   Fail
N = 1; P=0; M=1; hope_correct = 1; assert(fate(N,P,M)>hope_correct*0.999)

hope = 0.9990

Assertion failed.

3   Fail
N=1; P=1; M=1; hope_correct = 0.3679; assert(fate(N,P,M)>hope_correct*0.999)

hope = 0.1352

Assertion failed.

4   Fail
N=2; P=1; M=1; hope_correct = 0.3679; assert(fate(N,P,M)>hope_correct*0.999)

hope = 0.0497

Assertion failed.

5   Pass
N=2; P=1; M=2; hope_correct = 0.1353; assert(fate(N,P,M)<hope_correct*1.1)

hope = 0.0183

6   Pass
N=2; P=2; M=2; hope_correct = 0.0183; assert(fate(N,P,M)<hope_correct*1.1) %%

hope = 3.3513e-04