Cody

Solution 1544259

Submitted on 30 May 2018 by Binbin Qi
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
filetext = fileread('kurosuchecker.m'); assert(isempty(strfind(filetext,'eval'))) assert(isempty(strfind(filetext,'echo'))) assert(isempty(strfind(filetext,'switch')))

2   Pass
b = zeros(6); assert(isequal(kurosuchecker(b),false))

ans = logical 0

3   Pass
b = [1 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 0 0 0 1 0 1 1]; assert(isequal(kurosuchecker(b),true))

ans = logical 1

4   Pass
b = [1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0]; assert(isequal(kurosuchecker(b),true))

ans = logical 1

5   Pass
b = [1 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 0 1 0 1 1 0 1 1 0 1 0 0 0 0 1 0 1 1]; assert(isequal(kurosuchecker(b),false))

ans = logical 0

6   Pass
b = [1 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 0 0 1 0 1 1]; assert(isequal(kurosuchecker(b),false))

ans = logical 0

7   Pass
b = [1 0 0 1 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 1 1 0 0 0 0 0 1 0 1 1]; assert(isequal(kurosuchecker(b),false))

ans = logical 0

8   Pass
b = [1 0 1 0 1 0 0 1 0 1 0 1 1 0 0 0 1 1 0 1 1 0 1 0 1 1 0 1 0 0 0 0 1 1 0 1]; assert(isequal(kurosuchecker(b),false))

ans = logical 0

9   Pass
b = [1 0 1 0 0 1 1 1 0 0 1 0 0 0 1 1 0 1 0 1 0 1 1 0 1 1 0 1 0 0 0 0 1 0 1 1]; assert(isequal(kurosuchecker(b),false))

ans = logical 0

10   Pass
b = [1 0 1 0 0 1 0 1 1 0 0 1 0 0 0 0 1 1 0 1 0 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0]; assert(isequal(kurosuchecker(b),false))

ans = logical 0

11   Pass
b = [1 0 1 0 0 1 0 1 1 0 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 0 0 1 0 1 1 0 0 0 0 1 0 1 0 1]; assert(isequal(kurosuchecker(b),false))

ans = logical 0