Cody

# Problem 42777. GJam March 2016 IOW: Polynesiaglot Small

Solution 1544850

Submitted on 31 May 2018 by J. S. Kowontan
• Size: 16
• This is the leading solution.
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=[1 1 4 ]; v=Polyglot(m); vexp=[5 ]; assert(isequal(vexp,v))

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

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

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

5   Pass
m=[1 1 5 ]; v=Polyglot(m); vexp=[8 ]; assert(isequal(vexp,v))

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

7   Pass
m=[1 1 14 ]; v=Polyglot(m); vexp=[610 ]; assert(isequal(vexp,v))

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

9   Pass
m=[1 1 11 ]; v=Polyglot(m); vexp=[144 ]; assert(isequal(vexp,v))

10   Pass
m=[1 1 8 ]; v=Polyglot(m); vexp=[34 ]; assert(isequal(vexp,v))

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

12   Pass
m=[1 1 10 ]; v=Polyglot(m); vexp=[89 ]; assert(isequal(vexp,v))

13   Pass
m=[1 1 9 ]; v=Polyglot(m); vexp=[55 ]; assert(isequal(vexp,v))

14   Pass
m=[1 1 12 ]; v=Polyglot(m); vexp=[233 ]; assert(isequal(vexp,v))

15   Pass
m=[1 1 15 ]; v=Polyglot(m); vexp=[987 ]; assert(isequal(vexp,v)) toc

Elapsed time is 0.335858 seconds.