Cody

Solution 2185984

Submitted on 1 Apr 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
assert(isequal(maya_02('..'),2))

l = 1 1 t = 1 20 400 8000 160000 3200000 y = 2

2   Pass
assert(isequal(maya_02('.. .'),41))

l = 1 0 1 1 t = 1 20 400 8000 160000 3200000 y = 41

3   Pass
assert(isequal(maya_02('... .. ....__'),1254))

l = 5 5 1 1 1 1 0 1 1 0 1 1 1 t = 1 20 400 8000 160000 3200000 y = 1254

4   Pass
assert(isequal(maya_02('__ ....__ _'),4285))

l = 5 0 5 5 1 1 1 1 0 5 5 t = 1 20 400 8000 160000 3200000 y = 4285

5   Pass
assert(isequal(maya_02('._ o ....__ __'),48290))

l = 5 5 0 5 5 1 1 1 1 0 0 5 1 t = 1 20 400 8000 160000 3200000 y = 48290

6   Pass
assert(isequal(maya_02('. o o o o'),160000))

l = 0 0 0 0 1 t = 1 20 400 8000 160000 3200000 y = 160000

7   Pass
assert(isequal(maya_02('__ .. _ ..._ o .___'),32363216))

l = 5 5 5 1 0 0 5 1 1 1 0 5 0 1 1 0 5 5 t = 1 20 400 8000 160000 3200000 y = 32363216

Suggested Problems

More from this Author145