Cody

Problem 45380. The End of the World

Solution 2891078

Submitted on 29 Aug 2020 by Rafael S.T. Vieira
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
x=[1989 03 01]; assert(isequal(maya_cal(x),'12.18.15.15.4'))

2   Pass
x=[1995 03 23]; assert(isequal(maya_cal(x),'12.19.1.17.17'))

3   Pass
x=[2005 03 23]; assert(isequal(maya_cal(x),'12.19.12.2.10'))

4   Pass
x=[2015 03 23]; assert(isequal(maya_cal(x),'13.0.2.5.2'))

5   Pass
x=[1993 02 19]; assert(isequal(maya_cal(x),'12.18.19.15.15'))

6   Pass
x=[2012 12 31]; assert(isequal(maya_cal(x),'13.0.0.0.10'))

7   Pass
x=[2112 09 17]; assert(isequal(maya_cal(x),'13.5.1.3.9'))

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!