Cody

Solution 1289582

Submitted on 16 Oct 2017 by Reggie Wilcox
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]))

g = 3 f = 3 F = 4 t = 10

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

g = 21 f = 15 F = 46 t = 69

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

g = 28 f = 18 F = 64 t = 240

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

g = 1128 f = 138 F = 3244 t = 811