Cody

Problem 45375. Maya - 01

Solution 2986450

Submitted on 24 Sep 2020 by Alfonso Nieto-Castanon
  • Size: 22
  • 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
assert(isequal(maya_01(5),'_'))

2   Pass
assert(isequal(maya_01(26),'. ._'))

3   Pass
assert(isequal(maya_01(439),'. . ....___'))

4   Pass
assert(isequal(maya_01(440),'. .. o'))

5   Pass
assert(isequal(maya_01(200), '__ o'))

6   Pass
assert(isequal(maya_01(4285),'__ ....__ _'))

7   Pass
assert(isequal(maya_01(8285),'. o ....__ _'))

8   Pass
assert(isequal(maya_01(16125),'.. o ._ _'))

9   Pass
assert(isequal(maya_01(160000),'. o o o o'))

10   Pass
assert(isequal(maya_01(32363236),'__ .. _ ..._ . .___'))

Suggested Problems

More from this Author149

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!