6 kyu
Mayan Calendar
Loading description...
Date Time
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
I've done some research that leads to me to believe this description of the mayan long calendar is wrong. 13 20 7 16 3 should be 14 0 7 16 3 and it lies on January 6 2415. The 13 baktun started on December 21 2012
So maybe I am confusing two of the mayan calendars here but the two mayan date time converters that I found online BOTH stated that 1 January 2000 was in fact 12.19.6.15.2 on the mayan long count calendar. And I believe that they are right because it adds to the whole '2012 end of the world' theory because 13.0.0.0.0 would then fall on the 21 December 2012. Otherwise great kata!
In the description:
This made me lose some time because
1 January 2000
is13 20 7 16 3
instead.Both date are for
22 March 2001
.Just replaced "1 January 2000" with "22 March 2001"!
My sincerest apologies for any inconvenience caused and thanks for completing my kata :)
From random tests:
Hi! Thanks for taking the time to solve my kata :)
I've just fixed this error with the random tests, "14 1 0 0 0" should have been the lower limit instead of "14 0 0 0 0" - now all random dates are possible.
PS: Your code is actually better than the solution given by the British Infomatics Olympiad so kudos to you!