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 | Status | Code Input and Output |
---|---|---|
1 | Pass |
M=magic(4)
p=4
F=M
for i=2:p
F=[F M^i];
end
assert(isequal(powerConcat(M,p),F))
M =
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
p =
4
F =
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
F =
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
|
17143 Solvers
794 Solvers
1594 Solvers
351 Solvers
354 Solvers