Cody

Solution 1894058

Submitted on 7 Aug 2019 by William
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
T = 19; N = 1; D_correct = 0; H_correct = 20; [D,H]=driveTime(T,N) assert(isequal(D,D_correct)) assert(isequal(H,H_correct))

D = 0 H = 20

2   Pass
T = 17; N = 5; D_correct = 1; H_correct = 6; [D,H]=driveTime(T,N) assert(isequal(D,D_correct)) assert(isequal(H,H_correct))

D = 1 H = 6

3   Pass
T = 19; N = 10; D_correct = 1; H_correct = 23; [D,H]=driveTime(T,N) assert(isequal(D,D_correct)) assert(isequal(H,H_correct))

D = 1 H = 23

4   Pass
T = 23; N = 20; D_correct = 3; H_correct = 9; [D,H]=driveTime(T,N) assert(isequal(D,D_correct)) assert(isequal(H,H_correct))

D = 3 H = 9

Suggested Problems