Cody

Solution 1078311

Submitted on 9 Dec 2016 by Christopher
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 = 10; c = 3; M = createMatrix(n,c); assert( all(sum(M,1)==c) && all(sum(M,2)==c) && all(diag(M)==0) && ... islogical(M) && ismatrix(M) && all(size(M)==n) )

Xvws9hl8noebzcvx15ruvfexu5wocymjuifkd5bvjjymrmaakub1zmbm+vu7u7v709+cwbgiouvaacsbgaagnuaaacwggaayduaaacsbgaagnuaaacwggaaafydaacsbgaagnuaaacwggaaafydaacsbgaagnuaaacwggaaafydaadaagaagnuaaacwggaaafydaadaagaagnuaaacwggaaafydaadaagaaafgnaacwggaaafydaadaagaaafgnaaaaqweaafydaadaagaaafgnaaaaqweaafydaadaagaaafgnaaaaqweaaga1aadaagaaafgnaaaaqweaaga1aadaagaaafgnaaaaqweaaga1aaaarayaafgnaaaaqweaaga1aaaarayaaidvaaaaqweaaga1aaaarayaaidvaaaaqweaaga1aaaarayaaidvaaaasboaaga1aaaarayaaidvaaaasboaaga1aaaarayaaidvaaaasboaaabwawaarayaaidvaaaasboaaabwawaawgoaaidvaaaasboaaabwawaawgoaaidvaaaasboaaabwawaawgoaaabydqaasboaaabwawaawgoaaabydqaasboaaabwawaawgoaaabydqaaaksbaabwawaawgoaaabydqaaaksbaabgnqaawgoaaabydqaaaksbaaao4p8dcqyjyi7aunmaaaaasuvork5cyii="}]
2   Pass
n = 2; c = 1; M = createMatrix(n,c); assert( all(sum(M,1)==c) && all(sum(M,2)==c) && all(diag(M)==0) && ... islogical(M) && ismatrix(M) && all(size(M)==n) )

Gxszjbumsrvvgaaaabjru5erkjggg=="}]
3   Pass
n = 10; c = 9; M = createMatrix(n,c); assert( all(sum(M,1)==c) && all(sum(M,2)==c) && all(diag(M)==0) && ... islogical(M) && ismatrix(M) && all(size(M)==n) )

4i6ss2mypouaaaaaelftksuqmcc"}]
4   Pass
n = 100; c = 50; M = createMatrix(n,c); assert( all(sum(M,1)==c) && all(sum(M,2)==c) && all(diag(M)==0) && ... islogical(M) && ismatrix(M) && all(size(M)==n) )

Ci0tdmwl8fp6ogyp378zjkzb7jhhtlsutxzqamczsyyovvvutkdaic2qq6xfft2bzkefffjw1tbunsaana2aaaata0aaabtawaata0aaabtawaaqnsaaadqngaaalqnaadqngaaalqnaaaabqmaaedbaaaa0dyaaedbaaaa0dyaaac0dqaaag0daaba2waaag0daaba2waaana2aaaata0aaabtawaaqnsaaabtawaaqnsaaadqngaaalqnaaaabqmaalqnaaaabqmaaedbaaaa0dyaaac0dqaa0dyaaac0dqaaag0daaba2waaana2aaba2waaana2aaaata0aaabtawaaqnsaaabtawaaqnsaaadqngaaalqnaaaabqmaalqnaaaabqmaaedbaaaa0dyaaac0dqaaag0daac0dqaaag0daaba2waaana2aaaata0aana2aaaata0aaabtawaaqnsaaadqngaaqnsaaadqngaaalqnaaaabqmaaedbaaaabqmaaedbaaaa0dyaaac0dqaaag0daac0dqaaag0daaba2waaana2aaaata0aana2aaaata0aaabtawaaqnsaaadqngaaalqnaadqngaaalqnaaaabqmaaedbaaaa0dyaaedbaaaa0dyaaac0dqaaag0daaba2waaag0daaba2waaana2aaaata0aaabtawaata0aaabtawaayan+p3ups8ui4wgyaaaaaelftksuqmcc"}]
5   Pass
n = randi([2 20]); c = randi([1 n-1]); M = createMatrix(n,c); assert( all(sum(M,1)==c) && all(sum(M,2)==c) && all(diag(M)==0) && ... islogical(M) && ismatrix(M) && all(size(M)==n) )

5ptvzs7o5n0baoa2sbha2tq6uro4dwca2waaahabaaaabgmaambtaaca2waaahabaaaabgmaambtaaaaua0aahabaaaabgmaambtaaaaua0aaac3aqaabgmaambtaaaaua0aaac3aqaa4dyaambtaaaaua0aaac3aqaa4dyaaadcbgaagnsaaac3aqaa4dyaaadcbgaagnsaaabwgwaa4dyaaadcbgaagnsaaabwgwaaag4daadcbgaagnsaaabwgwaaag4daadabqaagnsaaabwgwaaag4daadabqaaalgnaabwgwaaag4daadabqaaalgnaaaatweaag4daadabqaaalgnaaaatweaaoa2aaaa3ayaalgnaaaatweaaoa2aaaa3ayaaidbaaaatweaaoa2aaaa3ayaaidbaaaacbsaaoa2aaaa3ayaaidbaaaacbsaaabuawaa3ayaaidbaaaacbsaaabuawaawg0aaidbaaaacbsaaabuawaawg0aaac4dqaacbsaaabuawaawg0aaac4dqaaalcbaabu4xqaaabuawaawg0aaac4dqaaalcbaadgngaawg0aaac4dqaaalcbaadgngaaanwgaac4dqaaalcbaadgngaaanwgaaca2waaalcbaaakjf8nmnj7egle0dkaaaaasuvork5cyii="}]
6   Pass
n = randi([20 100]); c = randi([10 n-1]); M = createMatrix(n,c); assert( all(sum(M,1)==c) && all(sum(M,2)==c) && all(diag(M)==0) && ... islogical(M) && ismatrix(M) && all(size(M)==n) )

Aujoydihwyyaaaaasuvork5cyii="}]