Cody

Solution 1899687

Submitted on 14 Aug 2019 by TIAN FENG
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))

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

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

i = 1 i = 2 i = 3 i = 4 i = 5 ans = 1 i = 6 i = 7 i = 8 i = 9 i = 10

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

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