SPOJ MAYA

From Algorithmist
Jump to navigation Jump to search

94 - Numeral System of the Maya[edit]

http://www.spoj.pl/problems/MAYA/

Summary[edit]

You are reqired to translate numbers given in ascii transformation of ancient symbols.

Explanation[edit]

Basically a transformation of numbers given with base 20 to decimal (base 10).

Gotchas[edit]

Watch the exception for third least significant digit of Maya numbers

Implementations[edit]

Easy implementation may use tables for 20 Maya digits and 7 factors for the weight of digits.