Cody

# Problem 49. Sums with Excluded Digits

Solution 166068

Submitted on 21 Nov 2012 by Eric
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 = 1.00 total = 3.00 total = 6.00 total = 10.00 total = 16.00 total = 23.00 total = 31.00 total = 40.00 total = 50.00 total = 61.00 total = 73.00 total = 86.00 total = 100.00 total = 116.00 total = 133.00 total = 151.00 total = 170.00 total = 190.00

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

total = 1.00 total = 3.00 total = 6.00 total = 10.00 total = 16.00 total = 23.00 total = 31.00 total = 40.00 total = 50.00

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

total = 1.00 total = 3.00 total = 7.00 total = 12.00 total = 18.00 total = 25.00 total = 33.00 total = 42.00 total = 52.00 total = 63.00 total = 75.00 total = 89.00 total = 104.00 total = 120.00 total = 137.00 total = 155.00 total = 174.00 total = 194.00 total = 215.00 total = 237.00 total = 261.00 total = 286.00 total = 312.00 total = 339.00 total = 367.00 total = 396.00