Cody

Problem 1189. Knights and Knaves (part 3)

Solution 1938727

Submitted on 17 Sep 2019
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   Fail

letters = 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90

Undefined function 'lettes' for input arguments of type 'double'. Error in solver (line 15) ss(k)=Q(['PASSWORD(' num2str(i) ')==' num2str(lettes(k)) ]); Error in Test1 (line 7) assert(isequal(solver(F),'PASSWORD'))

2   Fail

letters = 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90

Undefined function 'lettes' for input arguments of type 'double'. Error in solver (line 15) ss(k)=Q(['PASSWORD(' num2str(i) ')==' num2str(lettes(k)) ]); Error in Test2 (line 7) assert(isequal(solver(F),'PASSWORD'))

3   Fail

letters = 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90

Undefined function 'lettes' for input arguments of type 'double'. Error in solver (line 15) ss(k)=Q(['PASSWORD(' num2str(i) ')==' num2str(lettes(k)) ]); Error in Test3 (line 7) assert(isequal(solver(F),'DONOTPANIC'))

4   Fail

letters = 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90

Undefined function 'lettes' for input arguments of type 'double'. Error in solver (line 15) ss(k)=Q(['PASSWORD(' num2str(i) ')==' num2str(lettes(k)) ]); Error in Test4 (line 7) assert(isequal(solver(F),'FORTYTWO'))

5   Fail