Cody

Solution 2021470

Submitted on 14 Nov 2019 at 15:53 by Gergely Patay
  • Size: 24
  • This is the leading solution.
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
r = [44.28, 60.99]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

2   Pass
r = [38.33, 57.67]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

3   Pass
r = [0.98, 23.99]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

4   Pass
r = [27.07, 95.94]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

5   Pass
r = [ -7.45, 7.14]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

6   Pass
r = [43.19, 2.87]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

7   Pass
r = [19.39, 16.79]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

8   Pass
r = [48.72, 71.27]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

9   Pass
r = [-6.42, 68.20]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

10   Pass
r = [20.03, 47.11]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

Suggested Problems

More from this Author2