Cody

# Problem 49. Sums with Excluded Digits

Solution 1479469

Submitted on 5 Apr 2018 by Sumeet Gadagkar
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))

total = 0 total = 1 total = 3 total = 6 total = 10 total = 16 total = 23 total = 31 total = 40 total = 50 total = 61 total = 73 total = 86 total = 100 total = 116 total = 133 total = 151 total = 170 total = 190 ans = []

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

total = 0 total = 1 total = 3 total = 6 total = 10 total = 16 total = 23 total = 31 total = 40 total = 50 ans = []

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

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