Cody

Solution 1972795

Submitted on 12 Oct 2019 by Nikolaos Nikolaou
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
m = 7; n = 10; y_correct = 26; assert(isequal(sum(sum(your_fcn_name(m,n))),y_correct))

l = 2 s = 24 snakes = 26

2   Pass
m = 5; n = 10; y_correct = 17; assert(isequal(sum(sum(your_fcn_name(m,n))),y_correct))

l = 1 s = 16 snakes = 17

3   Pass
m = 9; n = 6; y_correct = 19; assert(isequal(sum(sum(your_fcn_name(m,n))),y_correct))

l = 3 s = 16 snakes = 19