Cody

Solution 2587159

Submitted on 20 Jun 2020 by Ramesh Kumar V
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
x = 1:6; y_correct = 60; assert(isequal(your_fcn_name(x),y_correct))

m = 6 c = 6 d = 5 c = 30 d = 4 c = 60 d = 3 c = 60 d = 2 c = 60 d = 1 c = 60 y = 60

2   Pass
x = 1:20; y_correct = 232792560; assert(isequal(your_fcn_name(x),y_correct))

m = 20 c = 20 d = 19 c = 380 d = 18 c = 3420 d = 17 c = 58140 d = 16 c = 232560 d = 15 c = 232560 d = 14 c = 1627920 d = 13 c = 21162960 d = 12 c = 21162960 d = 11 c = 232792560 d = 10 c = 232792560 d = 9 c = 232792560 d = 8 c = 232792560 d = 7 c = 232792560 d = 6 c = 232792560 d = 5 c = 232792560 d = 4 c = 232792560 d = 3 c = 232792560 d = 2 c = 232792560 d = 1 c = 232792560 y = 232792560