Cody

Solution 2089217

Submitted on 11 Jan 2020 by Devan Murphy
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
x = 11; y_correct = 16; assert(isequal(sums(x),y_correct))

Ints = 1 0 1 0 1 0 1 0 1 0 1 Ints = 1 2 1 2 1 2 1 2 1 2 1 y = 16

2   Pass
x = 50; y_correct = 75; assert(isequal(sums(x),y_correct))

Ints = Columns 1 through 29 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Columns 30 through 50 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Ints = Columns 1 through 29 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 Columns 30 through 50 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 75