Cody

Solution 2185992

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_03('.','..',@plus),'...'))

a = 1 b = 2 c = 3 q2 = 3 0 t = 3 0 y = '...' out = '...'

2   Pass
assert(isequal(maya_03('. o o o o','..',@minus),'....___ ....___ ....___ ...___'))

a = 160000 b = 2 c = 159998 q2 = 4 3 4 3 4 3 3 3 t = 4 3 t = 4 3 t = 4 3 t = 3 3 y = '....___ ....___ ....___ ...___' out = '....___ ....___ ....___ ...___'

3   Pass
assert(isequal(maya_03('. o o o o','._ o ....__ __',@minus),'...__ ....___ _ __'))

a = 160000 b = 48290 c = 111710 q2 = 3 2 4 3 0 1 0 2 t = 3 2 t = 4 3 t = 0 1 t = 0 2 y = '...__ ....___ _ __' out = '...__ ....___ _ __'

4   Pass
assert(isequal(maya_03('. o o o o','._ o ....__ __',@plus),'. ._ o ....__ __'))

a = 160000 b = 48290 c = 208290 q2 = 1 0 1 1 0 0 4 2 0 2 t = 1 0 t = 1 1 t = 0 0 t = 4 2 t = 0 2 y = '. ._ o ....__ __' out = '. ._ o ....__ __'

5   Pass
assert(isequal(maya_03('._','._',@minus),'o'))

a = 6 b = 6 c = 0 q2 = 0×2 empty double matrix y = 0×0 empty char array out = 0×0 empty char array out = 'o'

6   Pass
assert(isequal(maya_03('._ _ _','_ _ _ ._',@plus),'_ .__ __ .__'))

a = 2505 b = 42106 c = 44611 q2 = 0 1 1 2 0 2 1 2 t = 0 1 t = 1 2 t = 0 2 t = 1 2 y = '_ .__ __ .__' out = '_ .__ __ .__'