Cody

Solution 1675715

Submitted on 17 Nov 2018 by Alan
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))

s = 1 s = 3 s = 6 s = 10 s = 16 s = 23 s = 31 s = 40 s = 50 s = 61 s = 73 s = 86 s = 100 s = 116 s = 133 s = 151 s = 170 s = 190

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

s = 1 s = 3 s = 6 s = 10 s = 16 s = 23 s = 31 s = 40 s = 50

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

s = 1 s = 3 s = 7 s = 12 s = 18 s = 25 s = 33 s = 42 s = 52 s = 63 s = 75 s = 89 s = 104 s = 120 s = 137 s = 155 s = 174 s = 194 s = 215 s = 237 s = 261 s = 286 s = 312 s = 339 s = 367 s = 396