Cody

Solution 1259913

Submitted on 31 Aug 2017 by Gabriel Delcros
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))

N = '20' var2 = 1 table = 1 var2 = 1 table = 1 2 var2 = 1 table = 1 2 3 var2 = 1 table = 1 2 3 4 var2 = 1 var2 = 1 table = 1 2 3 4 0 6 var2 = 1 table = 1 2 3 4 0 6 7 var2 = 1 table = 1 2 3 4 0 6 7 8 var2 = 1 table = 1 2 3 4 0 6 7 8 9 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 12 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 12 13 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 12 13 14 var2 = 2 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 12 13 14 0 16 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 12 13 14 0 16 17 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 12 13 14 0 16 17 18 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 12 13 14 0 16 17 18 19 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 11 12 13 14 0 16 17 18 19 20 total = 190

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

N = '10' var2 = 1 table = 1 var2 = 1 table = 1 2 var2 = 1 table = 1 2 3 var2 = 1 table = 1 2 3 4 var2 = 1 var2 = 1 table = 1 2 3 4 0 6 var2 = 1 table = 1 2 3 4 0 6 7 var2 = 1 table = 1 2 3 4 0 6 7 8 var2 = 1 table = 1 2 3 4 0 6 7 8 9 var2 = 2 table = 1 2 3 4 0 6 7 8 9 10 total = 50

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

N = '33' var2 = 1 table = 1 var2 = 1 table = 1 2 var2 = 1 var2 = 1 table = 1 2 0 4 var2 = 1 table = 1 2 0 4 5 var2 = 1 table = 1 2 0 4 5 6 var2 = 1 table = 1 2 0 4 5 6 7 var2 = 1 table = 1 2 0 4 5 6 7 8 var2 = 1 table = 1 2 0 4 5 6 7 8 9 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 var2 = 2 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 21 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 21 22 var2 = 2 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 21 22 0 24 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 21 22 0 24 25 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 21 22 0 24 25 26 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 21 22 0 24 25 26 27 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 21 22 0 24 25 26 27 28 var2 = 2 table = 1 2 0 4 5 6 7 8 9 10 11 12 0 14 15 16 17 18 19 20 21 22 0 24 25 26 27 28 29 var2 = 2 var2 = 2 var2 = 2 var2 = 2 total = 396

More from this Author95