Cody

Solution 1158765

Submitted on 10 Apr 2017 by H M Dipu Kabir
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
x = 1800; y = 1800; assert(isequal(expected_score(x,y),0.5))

ans = []

2   Pass
x = 1900; y = 1800; assert(isequal(expected_score(x,y),0.64))

ans = []

3   Pass
x = 1900; y = 2000; assert(isequal(expected_score(x,y),0.36))

ans = []

4   Pass
x = 1900; y = 2100; assert(isequal(expected_score(x,y),0.24))

ans = []

5   Pass
x = 1800; y = 2775; assert(isequal(expected_score(x,y),0.004))

ans = []

6   Pass
x = 1800; y = 2865; assert(isequal(expected_score(x,y),0.002))

ans = []

7   Pass
x = 2865; y = 2775; assert(isequal(expected_score(x,y),0.627))

ans = []

8   Pass
x = 2865; y = 2851; assert(isequal(expected_score(x,y),0.52))

ans = []

9   Pass
x = 2865; y = 2844; assert(isequal(expected_score(x,y),0.53))

ans = []

10   Pass
x = 2785; y = 2865; assert(isequal(expected_score(x,y),0.387))

ans = []

11   Pass
x = 2785; y = 1800; assert(isequal(expected_score(x,y),0.997))

ans = []