Cody

# Problem 2028. Magic Concentric Circles

Solution 464157

Submitted on 30 Jun 2014 by rifat
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
%% c=[ 20 33 12 4 ; 16 1 31 21 ; 23 13 19 4 ; 10 22 7 30 ; 9 9 9 9 ; 2 18 25 34 ; 29 26 11 3 ; 32 17 5 15 ; 6 8 28 27 ]; y_correct = 0; assert(isequal(ismagic0(c),y_correct))

ans = 0

2   Pass
%% c=[ 20 33 12 4 ; 16 1 31 21 ; 23 13 19 14 ; 10 22 7 30 ; 9 9 9 9 ; 2 18 25 24 ; 29 26 11 3 ; 32 17 5 15 ; 6 8 28 27 ]; y_correct = 1; assert(isequal(ismagic0(c),y_correct))

ans = 1

3   Pass
%% c=[24 10 23 16; 25 22 13 1; 18 7 19 31; 2 30 14 21; 9 9 9 9; 4 6 32 29; 12 8 17 26; 33 28 5 11; 20 27 15 3]; y_correct = 1; assert(isequal(ismagic0(c),y_correct))

ans = 1

4   Pass
%% c=[ 30 29 2 32; 7 18 26 17; 22 25 11 5; 10 24 3 15; 9 9 9 9; 27 20 16 23; 28 33 1 13; 8 12 31 19; 6 4 21 14]; y_correct = 0; assert(isequal(ismagic0(c),y_correct))

ans = 0

5   Pass
%% c=[30 2 29 32; 7 18 26 17; 22 25 11 5; 10 24 16 15; 9 9 9 9; 27 20 3 23; 28 33 1 13; 8 12 31 19; 6 4 21 14]; y_correct = 1; assert(isequal(ismagic0(c),y_correct))

ans = 1

6   Pass
%% c=[30 2 29 32; 7 18 26 17; 22 25 11 5; 10 24 3 15; 9 9 9 9; 27 20 16 23; 28 33 1 13; 8 12 31 19; 6 4 21 14]; y_correct = 1; assert(isequal(ismagic0(c),y_correct))

ans = 1

7   Pass
%% c=[ 30 2 29 32; 22 25 11 4; 7 18 26 17; 9 23 2 15; 8 9 9 10; 28 21 17 23; 8 12 31 19; 29 33 1 13; 6 4 21 14]; y_correct = 0; assert(isequal(ismagic0(c),y_correct))

ans = 0

8   Pass
%% c=[ 20 34 11 4 ; 16 0 31 21 ; 23 13 19 14 ; 10 22 7 30 ; 9 9 9 9 ; 2 18 25 24 ; 29 26 11 3 ; 32 17 6 15 ; 6 8 28 27 ]; y_correct = 0; assert(isequal(ismagic0(c),y_correct))

ans = 0

9   Pass
%% c=randi(32,9,4); y_correct = 0; assert(isequal(ismagic0(c),y_correct))

ans = 0
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0}