Cody

Problem 45210. another bullseye

Solution 2075466

Submitted on 31 Dec 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
x = 1; y_correct = 1; assert(isequal(atoll(x),y_correct))

m = 1 1 1 m = 1 1 2 m = 1 2 3

Output argument "y" (and maybe others) not assigned during call to "atoll". Error in Test1 (line 3) assert(isequal(atoll(x),y_correct))

2   Fail
x = 2; y_correct =[1 1 1 1 1; 1 2 2 2 1; 1 2 3 2 1; 1 2 2 2 1; 1 1 1 1 1]; assert(isequal(atoll(x),y_correct))

m = 1 1 1 1 1 m = 1 1 1 1 2 m = 1 1 1 2 3 m = 1 1 2 3 4 m = 1 2 3 4 5

Output argument "y" (and maybe others) not assigned during call to "atoll". Error in Test2 (line 3) assert(isequal(atoll(x),y_correct))

3   Fail
x = 4; y_correct =[1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 2 3 3 3 3 3 3 3 3 3 2 1 1 2 3 4 4 4 4 4 4 4 3 2 1 1 2 3 4 5 5 5 5 5 4 3 2 1 1 2 3 4 5 6 6 6 5 4 3 2 1 1 2 3 4 5 6 7 6 5 4 3 2 1 1 2 3 4 5 6 6 6 5 4 3 2 1 1 2 3 4 5 5 5 5 5 4 3 2 1 1 2 3 4 4 4 4 4 4 4 3 2 1 1 2 3 3 3 3 3 3 3 3 3 2 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1] assert(isequal(atoll(x),y_correct))

y_correct = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 2 3 3 3 3 3 3 3 3 3 2 1 1 2 3 4 4 4 4 4 4 4 3 2 1 1 2 3 4 5 5 5 5 5 4 3 2 1 1 2 3 4 5 6 6 6 5 4 3 2 1 1 2 3 4 5 6 7 6 5 4 3 2 1 1 2 3 4 5 6 6 6 5 4 3 2 1 1 2 3 4 5 5 5 5 5 4 3 2 1 1 2 3 4 4 4 4 4 4 4 3 2 1 1 2 3 3 3 3 3 3 3 3 3 2 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 m = 1 1 1 1 1 1 1 1 1 m = 1 1 1 1 1 1 1 1 2 m = 1 1 1 1 1 1 1 2 3 m = 1 1 1 1 1 1 2 3 4 m = 1 1 1 1 1 2 3 4 5 m = 1 1 1 1 2 3 4 5 6 m = 1 1 1 2 3 4 5 6 7 m = 1 1 2 3 4 5 6 7 8 m = 1 2 3 4 5 6 7 8 9

Output argument "y" (and maybe others) not assigned during call to "atoll". Error in Test3 (line 15) assert(isequal(atoll(x),y_correct))