Cody

Solution 1556201

Submitted on 10 Jun 2018 by Bernd Seggewiß
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))

v = -16 1 -16 2 -16 3 -16 4 -16 5 -16 6 -16 7 -16 8 -16 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0

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

v = -16 1 -16 2 -16 3 -16 4 -16 5 -16 6 -16 7 -16 8 -16 9 1 0

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

v = -16 1 -16 2 -16 3 -16 4 -16 5 -16 6 -16 7 -16 8 -16 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3