Cody

Problem 44715. 007: Chinese Barrack Invasion

Solution 2041354

Submitted on 2 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
assert(isequal(Invasion(0),0))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test1 (line 1) assert(isequal(Invasion(0),0))

2   Fail
assert(isequal(Invasion(1),1))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test2 (line 1) assert(isequal(Invasion(1),1))

3   Fail
assert(isequal(Invasion(2),2))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test3 (line 1) assert(isequal(Invasion(2),2))

4   Fail
assert(isequal(Invasion(3),5))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test4 (line 1) assert(isequal(Invasion(3),5))

5   Fail
assert(isequal(Invasion(4),10))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test5 (line 1) assert(isequal(Invasion(4),10))

6   Fail
assert(isequal(Invasion(5),21))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test6 (line 1) assert(isequal(Invasion(5),21))

7   Fail
assert(isequal(Invasion(6),42))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test7 (line 1) assert(isequal(Invasion(6),42))

8   Fail
assert(isequal(Invasion(7),85))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test8 (line 1) assert(isequal(Invasion(7),85))

9   Fail
assert(isequal(Invasion(8),170))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test9 (line 1) assert(isequal(Invasion(8),170))

10   Fail
assert(isequal(Invasion(9),341))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test10 (line 1) assert(isequal(Invasion(9),341))

11   Fail
assert(isequal(Invasion(10),682))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test11 (line 1) assert(isequal(Invasion(10),682))

12   Fail
assert(isequal(Invasion(11),1365))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test12 (line 1) assert(isequal(Invasion(11),1365))

13   Fail
assert(isequal(Invasion(12),2730))

Output argument "m" (and maybe others) not assigned during call to "Invasion". Error in Test13 (line 1) assert(isequal(Invasion(12),2730))

Suggested Problems

More from this Author18

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!