Cody

Solution 1298074

Submitted on 18 Oct 2017 by goc3
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]))

outer_glasses_per_level = 1 3

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

outer_glasses_per_level = 1 3 6 9 12 15

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

outer_glasses_per_level = 1 3 6 9 12 15 18

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

outer_glasses_per_level = Columns 1 through 30 1 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 75 78 81 84 87 Columns 31 through 47 90 93 96 99 102 105 108 111 114 117 120 123 126 129 132 135 138

Suggested Problems

More from this Author34