Cody

Solution 1205210

Submitted on 5 Jun 2017 by Augusto Mazzei
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
n = 20; m = 5; total = 190; assert(isequal(no_digit_sum(n,m),total))

l = 1 l = 2 l = 3 l = 4 l = 5 l = 6 l = 7 l = 8 l = 9 l = 10 l = 11 l = 12 l = 13 l = 14 l = 15 l = 16 l = 17 l = 18 l = 19 l = 20 l = 21

2   Pass
n = 10; m = 5; total = 50; assert(isequal(no_digit_sum(n,m),total))

l = 1 l = 2 l = 3 l = 4 l = 5 l = 6 l = 7 l = 8 l = 9 l = 10 l = 11

3   Pass
n = 33; m = 3; total = 396; assert(isequal(no_digit_sum(n,m),total))

l = 1 l = 2 l = 3 l = 4 l = 5 l = 6 l = 7 l = 8 l = 9 l = 10 l = 11 l = 12 l = 13 l = 14 l = 15 l = 16 l = 17 l = 18 l = 19 l = 20 l = 21 l = 22 l = 23 l = 24 l = 25 l = 26 l = 27 l = 28 l = 29 l = 30 l = 31 l = 32 l = 33 l = 34