Cody

Solution 1939993

Submitted on 17 Sep 2019 by Ngo Minh Ngoc
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))

M = [] B = 1 M = 1 y = 1 A = 2 M = 1 2 y = 3 B = 1 M = 1 2 1 y = 4 A = 2 M = 1 2 1 2 y = 6 B = 1 M = 1 2 1 2 1 y = 7 A = 2 M = 1 2 1 2 1 2 y = 9 B = 1 M = 1 2 1 2 1 2 1 y = 10 A = 2 M = 1 2 1 2 1 2 1 2 y = 12 B = 1 M = 1 2 1 2 1 2 1 2 1 y = 13 A = 2 M = 1 2 1 2 1 2 1 2 1 2 y = 15 B = 1 M = 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))

M = [] B = 1 M = 1 y = 1 A = 2 M = 1 2 y = 3 B = 1 M = 1 2 1 y = 4 A = 2 M = 1 2 1 2 y = 6 B = 1 M = 1 2 1 2 1 y = 7 A = 2 M = 1 2 1 2 1 2 y = 9 B = 1 M = 1 2 1 2 1 2 1 y = 10 A = 2 M = 1 2 1 2 1 2 1 2 y = 12 B = 1 M = 1 2 1 2 1 2 1 2 1 y = 13 A = 2 M = 1 2 1 2 1 2 1 2 1 2 y = 15 B = 1 M = 1 2 1 2 1 2 1 2 1 2 1 y = 16 A = 2 M = 1 2 1 2 1 2 1 2 1 2 1 2 y = 18 B = 1 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 19 A = 2 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 21 B = 1 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 22 A = 2 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 24 B = 1 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 25 A = 2 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 27 B = 1 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 28 A = 2 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 30 B = 1 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 31 A = 2 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 33 B = 1 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 34 A = 2 M = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 36 B = 1 M = 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 y = 37 A = 2 M = 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 y = 39 B = 1 M = 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 y = 40 A = 2 M = 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 y = 42 B = 1 M = 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 y = 43 A = 2 M = 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 2 y = 45 B = 1 M = Columns 1 through 30 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 2 Column 31 1 y = 46 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 32 1 2 y = 48 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 33 1 2 1 y = 49 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 34 1 2 1 2 y = 51 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 35 1 2 1 2 1 y = 52 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 36 1 2 1 2 1 2 y = 54 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 37 1 2 1 2 1 2 1 y = 55 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 38 1 2 1 2 1 2 1 2 y = 57 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 39 1 2 1 2 1 2 1 2 1 y = 58 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 40 1 2 1 2 1 2 1 2 1 2 y = 60 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 41 1 2 1 2 1 2 1 2 1 2 1 y = 61 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 42 1 2 1 2 1 2 1 2 1 2 1 2 y = 63 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 43 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 64 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 44 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 66 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 45 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 67 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 46 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 69 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 47 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 y = 70 A = 2 M = Columns 1 through 30 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 2 Columns 31 through 48 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 y = 72 B = 1 M = Columns 1 through 30 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 2 Columns 31 through 49 1 2 1 2 1 2 1 ...