Cody

# Problem 42777. GJam March 2016 IOW: Polynesiaglot Small

Solution 853562

Submitted on 19 Mar 2016
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   Fail
tic m=[1 1 4 ]; v=Polyglot(m); vexp=[5 ]; assert(isequal(vexp,v))

Assertion failed.

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

Assertion failed.

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

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.