my solution is actually wrong.but TestSuite didn't add a "n=7" case,so...
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 5;
a = [0 0 0 0 0;
0 69 69 69 0;
0 69 0 69 0;
0 69 69 69 0;
0 0 0 0 0];
assert(isequal(bullseye3(n),a));
|
2 | Pass |
%%
n = 9;
a = [0 0 0 0 0 0 0 0 0;
0 69 69 69 69 69 69 69 0;
0 69 0 0 0 0 0 69 0;
0 69 0 69 69 69 0 69 0;
0 69 0 69 0 69 0 69 0;
0 69 0 69 69 69 0 69 0;
0 69 0 0 0 0 0 69 0;
0 69 69 69 69 69 69 69 0;
0 0 0 0 0 0 0 0 0;];
assert(isequal(bullseye3(n),a));
|
Determine the number of odd integers in a vector
321 Solvers
Calculate the integral of the polynomial
67 Solvers
245 Solvers
424 Solvers
437 Solvers