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));
|
Find the numeric mean of the prime numbers in a matrix.
5913 Solvers
136 Solvers
The Answer to Life, the Universe, and Everything
312 Solvers
Sum the numbers on the main diagonal
375 Solvers
412 Solvers