Cody

# Problem 45210. another bullseye

Solution 2075468

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 = 2 2 2 m = 3 3 2 m = 4 3 2

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 = 2 2 2 2 2 m = 3 3 3 3 2 m = 4 4 4 3 2 m = 5 5 4 3 2 m = 6 5 4 3 2

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 = 2 2 2 2 2 2 2 2 2 m = 3 3 3 3 3 3 3 3 2 m = 4 4 4 4 4 4 4 3 2 m = 5 5 5 5 5 5 4 3 2 m = 6 6 6 6 6 5 4 3 2 m = 7 7 7 7 6 5 4 3 2 m = 8 8 8 7 6 5 4 3 2 m = 9 9 8 7 6 5 4 3 2 m = 10 9 8 7 6 5 4 3 2

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