Cody

Solution 872396

Submitted on 12 Apr 2016 by Jean-Marie Sainthillier
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=[0 0 0 1 0 0 0; 0 0 0 0 0 0 0; 0 4 0 0 0 0 0; 0 0 0 1 3 3 1; 0 3 1 0 1 0 1; 0 1 3 1 3 1 3; 0 3 1 1 0 0 0; 0 0 3 0 0 3 0; 0 0 0 3 0 0 0]; off_side = 0; assert(isequal(fifa(x),off_side));

tf = 0

2   Pass
x=[0 0 0 1 0 0 0; 0 0 0 3 0 0 0; 0 0 0 2 1 0 0; 0 0 0 3 1 3 1; 0 3 1 0 1 0 1; 0 1 3 1 3 1 3; 0 3 0 0 0 0 0; 0 0 3 0 0 3 0; 0 0 0 3 0 0 0]; off_side = 1; assert(isequal(fifa(x),off_side));

tf = 1

3   Pass
x=[0 0 0 3 0 0 0; 0 0 0 0 0 0 0; 0 0 0 2 1 0 0; 0 0 0 3 1 3 1; 0 3 1 0 1 0 1; 0 1 3 1 3 1 3; 0 3 0 0 0 0 0; 3 0 3 0 0 3 0; 0 0 0 1 0 0 0]; off_side = 1; assert(isequal(fifa(x),off_side));

tf = 1