Cody

Solution 2169997

Submitted on 22 Mar 2020 by Nikolaos Nikolaou
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 = [2,3,5]; n=10; y_correct = 15; assert(isequal(ugly_ugly(x,n),y_correct))

y = 15

2   Pass
x = [2,3,5]; n=25; y_correct = 60; assert(isequal(ugly_ugly(x,n),y_correct))

y = 60

3   Pass
x = [2,3,5]; n=50; y_correct = 250; assert(isequal(ugly_ugly(x,n),y_correct))

y = 250

4   Pass
x = [2,3]; n=50; y_correct = 2592; assert(isequal(ugly_ugly(x,n),y_correct))

y = 2592

5   Pass
x = [5,3]; n=50; y_correct =164025; assert(isequal(ugly_ugly(x,n),y_correct))

y = 164025

6   Pass
x = [7,3]; n=24; y_correct = 6561; assert(isequal(ugly_ugly(x,n),y_correct))

y = 6561

7   Pass
x = [2,13,7]; n=48; y_correct = 1792; assert(isequal(ugly_ugly(x,n),y_correct))

y = 1792

8   Pass
x = [7,13,17]; n=48; y_correct =261443; assert(isequal(ugly_ugly(x,n),y_correct))

y = 261443