Cody

Solution 2192367

Submitted on 4 Apr 2020 by Atsushi Ueno
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
assert(isequal(series_sum(3,4),3702))

z = 12 90 600 3000 0 ans = 3702

2   Pass
assert(isequal(series_sum(2,15),246913580246910))

z = 1.0e+14 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0010 0.0080 0.0600 0.4000 2.0000 0 ans = 2.4691e+14

3   Pass
assert(isequal(series_sum(9,9),1111111101))

z = 81 720 6300 54000 450000 3600000 27000000 180000000 900000000 0 ans = 1.1111e+09

4   Pass
assert(isequal(series_sum(1,12),123456790122))

z = 1.0e+11 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0005 0.0040 0.0300 0.2000 1.0000 0 ans = 1.2346e+11

5   Pass
assert(isequal(series_sum(5,5),61725))

z = 25 200 1500 10000 50000 0 ans = 61725