Cody

Problem 45438. Successive zeros (harder)

Solution 2250962

Submitted on 2 May 2020 by Fred Smith
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( num_count(4,2),8829)) 2

ans = 2

2   Pass
assert(isequal( num_count(6,2),866781)) 3

ans = 3

3   Pass
assert(isequal( num_count(6,4),899829)) 4

ans = 4

4   Pass
assert(isequal( num_count(2,2),90)) 5

ans = 5

5   Pass
assert(isequal( num_count(5,4),89991)) 6

ans = 6

6   Pass
assert(isequal( num_count(3,1),729)) %not successive 7

ans = 7

7   Pass
assert(isequal( num_count(7,2), 8588349)) 8

ans = 8

8   Pass
assert(isequal( num_count(8,2),85096170))