Cody

Solution 570326

Submitted on 30 Jan 2015 by Paul
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
%% b = 18; e = 7; s = 9; d = 24; y_correct = 217728; assert(isequal(lunch(b,e,s,d),y_correct))

2   Pass
%% b = 2; d = 3; s = 10; e = 4; y_correct = 2160; assert(isequal(lunch(b,e,s,d),y_correct))

3   Pass
%% b = 1; d = 2; s = 11; e = 3; y_correct = 660; assert(isequal(lunch(b,e,s,d),y_correct))

4   Pass
%% b = 5; d = 2; s = 9; e = 100; y_correct = 72000; assert(isequal(lunch(b,e,s,d),y_correct))