Cody

# Problem 49. Sums with Excluded Digits

Solution 2126226

Submitted on 12 Feb 2020
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   Fail
n = 20; m = 5; total = 190; assert(isequal(no_digit_sum(n,m),total))

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

Assertion failed.

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

i_str = '1' i_str = '2' i_str = '3' i_str = '4' i_str = '5' i_str = '6' i_str = '7' i_str = '8' i_str = '9' i_str = '10'

Assertion failed.

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

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

Assertion failed.