Cody

Solution 170023

Submitted on 28 Nov 2012 by Evan
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))
ans = 1 2 3 4 5 6 7 8 9 10 11 ans = 16
2   Pass
%% x = 50; y_correct = 75; assert(isequal(sums(x),y_correct))
ans = Columns 1 through 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Columns 17 through 32 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Columns 33 through 48 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 Columns 49 through 50 49 50 ans = 75