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 =
10
total =
16
total =
23
total =
31
total =
40
total =
50
total =
61
total =
73
total =
86
total =
100
total =
100
total =
116
total =
133
total =
151
total =
170
total =
190
|
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 =
10
total =
16
total =
23
total =
31
total =
40
total =
50
|
3 | Pass |
%%
n = 33;
m = 3;
total = 396;
assert(isequal(no_digit_sum(n,m),total))
total =
0
total =
1
total =
3
total =
3
total =
7
total =
12
total =
18
total =
25
total =
33
total =
42
total =
52
total =
63
total =
75
total =
75
total =
89
total =
104
total =
120
total =
137
total =
155
total =
174
total =
194
total =
215
total =
237
total =
237
total =
261
total =
286
total =
312
total =
339
total =
367
total =
396
total =
396
total =
396
total =
396
total =
396
|
Find the two most distant points
1628 Solvers
3968 Solvers
856 Solvers
401 Solvers
07 - Common functions and indexing 6
348 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!