Cody

Solution 2174967

Submitted on 25 Mar 2020 by David Hill
  • Size: 46
  • 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(gapful_4(54),0))

2   Pass
assert(isequal(gapful_4(451),51))

3   Pass
assert(isequal(gapful_4(4451),525))

4   Pass
assert(isequal(gapful_4(10000),765))

5   Pass
assert(isequal(gapful_4(100000),7491))

6   Pass
assert(isequal(gapful_4(99999),7490))

7   Pass
assert(isequal(gapful_4(1000000),74665))

8   Pass
%assert(isequal(gapful_4(1200000),117829))

9   Pass
%assert(isequal(gapful_4(10000000),746,286))