Games (06)

In the Mayan calendar there were 20 days (called Kins) in a Uinal, 18 Uinals in a Tun, 20 tuns in a Katan and 20 Katans in a Baktun.   We write our dates in the order day, month and then year,  The Maya write their dates in reverse order giving the baktun, katun, tun, uinal then kin. The Mayan date 13-20-7-16-3 corresponds to 1-1-2000.  Write a program which converts between the Mayan calendar and our own.

Taken from the 2006 Informatics Olympiad.

Click here to view all the competition tasks.

© British Informatics Olympiad

Leave a Reply

Your e-mail address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.