Cody

Solution 1528307

Submitted on 14 May 2018 by Erik Luiten
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
n = 2; C_correct = [1080,1080]; assert(isequal(matrix_rep(n),C_correct))

a = 1 2 3 4 5 6 7 8 9 b = 1 2 3 4 5 6 7 8 9 b = 1 2 3 1 2 3 4 5 6 4 5 6 7 8 9 7 8 9 c = 1 2 3 1 2 3 4 5 6 4 5 6 7 8 9 7 8 9 c = 1 2 3 1 2 3 4 5 6 4 5 6 7 8 9 7 8 9 1 2 3 1 2 3 4 5 6 4 5 6 7 8 9 7 8 9

2   Pass
n = 5; C_correct = [16875,16875]; assert(isequal(matrix_rep(n),C_correct))

a = 1 2 3 4 5 6 7 8 9 b = 1 2 3 4 5 6 7 8 9 b = 1 2 3 1 2 3 4 5 6 4 5 6 7 8 9 7 8 9 b = 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6 4 5 6 7 8 9 7 8 9 7 8 9 b = 1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6 4 5 6 4 5 6 7 8 9 7 8 9 7 8 9 7 8 9 b = 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6 4 5 6 4 5 6 4 5 6 7 8 9 7 8 9 7 8 9 7 8 9 7 8 9 c = 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6 4 5 6 4 5 6 4 5 6 7 8 9 7 8 9 7 8 9 7 8 9 7 8 9 c = 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6 4 5 6 4 5 6 4 5 6 7 8 9 7 8 9 7 8 9 7 8 9 7 8 9 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6 4 5 6 4 5 6 4 5 6 7 8 9 7 8 9 7 8 9 7 8 9 7 8 9 c = 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6 4 5 6 4 5 6 4 5 6 7 8 9 7 8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