Cody

Solution 1954635

Submitted on 1 Oct 2019 by Nikolaos Nikolaou
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
[g f t] = filltime(0.25, 0.1, 2); assert(isequal([g f t],[3 3 10]))

t = 2.5000 7.5000 t = 10

2   Pass
[g f t] = filltime(0.45, 0.3, 6); assert(isequal([g f t],[21 15 69]))

t = 1.5000 4.5000 9.0000 13.5000 18.0000 22.5000 t = 69

3   Pass
[g f t] = filltime(3, 0.8, 7); assert(isequal([g f t],[28 18 240]))

t = 3.7500 11.2500 22.5000 33.7500 45.0000 56.2500 67.5000 t = 240

4   Pass
[g f t] = filltime(2, 8, 47); assert(isequal([g f t],[1128 138 811]))

t = Columns 1 through 18 0.2500 0.7500 1.5000 2.2500 3.0000 3.7500 4.5000 5.2500 6.0000 6.7500 7.5000 8.2500 9.0000 9.7500 10.5000 11.2500 12.0000 12.7500 Columns 19 through 36 13.5000 14.2500 15.0000 15.7500 16.5000 17.2500 18.0000 18.7500 19.5000 20.2500 21.0000 21.7500 22.5000 23.2500 24.0000 24.7500 25.5000 26.2500 Columns 37 through 47 27.0000 27.7500 28.5000 29.2500 30.0000 30.7500 31.5000 32.2500 33.0000 33.7500 34.5000 t = 811