Cody

Solution 1567876

Submitted on 23 Jun 2018 by J. S. Kowontan
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
tic m=[2 8 15 ]; v=Polyglot(m); vexp=[6938704 ]; assert(isequal(vexp,v))

2   Pass
m=[2 7 15 ]; v=Polyglot(m); vexp=[853390015]; assert(isequal(vexp,v))

3   Pass
m=[2 2 2 ]; v=Polyglot(m); vexp=[8]; assert(isequal(vexp,v))

4   Pass
m=[2 2 3 ]; v=Polyglot(m); vexp=[24]; assert(isequal(vexp,v))

5   Pass
m=[2 2 15]; v=Polyglot(m); vexp=[32342016 ]; assert(isequal(vexp,v))

6   Pass
m=[4 2 2]; v=Polyglot(m); vexp=[12]; assert(isequal(vexp,v))

7   Pass
m=[4 2 3]; v=Polyglot(m); vexp=[40]; assert(isequal(vexp,v))

8   Pass
m=[4 2 4]; v=Polyglot(m); vexp=[176]; assert(isequal(vexp,v))

9   Pass
m=[44 2 15]; v=Polyglot(m); vexp=[916593151]; assert(isequal(vexp,v))

10   Pass
m=[1 3 15]; v=Polyglot(m); vexp=[397629405]; assert(isequal(vexp,v))

11   Pass
m=[2 3 15]; v=Polyglot(m); vexp=[105078522]; assert(isequal(vexp,v))

12   Pass
m=[2 4 15]; v=Polyglot(m); vexp=[133836675]; assert(isequal(vexp,v))

13   Pass
m=[2 8 15]; v=Polyglot(m); vexp=[6938704]; assert(isequal(vexp,v))

14   Pass
m=[2 8 14]; v=Polyglot(m); vexp=[624439943]; assert(isequal(vexp,v))

15   Pass
m=[50 50 2]; v=Polyglot(m); vexp=[5000]; assert(isequal(vexp,v))

16   Pass
m=[50 50 3]; v=Polyglot(m); vexp=[375000]; assert(isequal(vexp,v))

17   Pass
m=[50 50 7]; v=Polyglot(m); vexp=[249885158]; assert(isequal(vexp,v))

18   Pass
m=[10 20 10]; v=Polyglot(m); vexp=[998720967]; assert(isequal(vexp,v))

19   Pass
m=[5 10 13]; v=Polyglot(m); vexp=[746816099]; assert(isequal(vexp,v))

20   Pass
m=[1 1 13 ]; v=Polyglot(m); vexp=[377 ]; assert(isequal(vexp,v)) toc

Elapsed time is 0.410651 seconds.