Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
y = kurchan_5x5
uy=unique(y(:));
assert(isequal(uy,[1:25]'));
dg = @(mm) spdiags([mm mm],1:length(mm));
py=prod([y y' dg(y) dg(flipud(y))]);
cody_score=max(py)-min(py);
fprintf('Maximum product of your matrix = %.0f \n',max(py))
fprintf('Minimum product of your matrix = %.0f \n',min(py))
fprintf('Kurchan score of your matrix = %.0f \n',cody_score)
feval(@assignin,'caller','score',cody_score);
y =
1 17 11 21 20
22 18 8 3 14
15 2 25 19 6
24 7 13 12 5
10 23 4 9 16
Maximum product of your matrix = 134400
Minimum product of your matrix = 78540
Kurchan score of your matrix = 55860
|
340 Solvers
String substitution, sub problem to cryptoMath
105 Solvers
307 Solvers
812 Solvers
Find out missing number from a vector of 9 elements
207 Solvers