Cody

Problem 45436. Successive zeros

Solution 2205443

Submitted on 11 Apr 2020 by bainhome
  • Size: 34
  • This is the leading solution.
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   Pass
assert(isequal( num_count(6,2),866781))

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

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

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

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

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

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