Cody

Solution 465181

Submitted on 2 Jul 2014 by Guillaume
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

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 = 0; assert(isequal(fifa(x),off_side));