Cody

Solution 466041

Submitted on 3 Jul 2014 by George Berken
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));

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));

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));