Actually it's 31536000 (not 31356000) and 12314555(not 1231455) as 
described in the problem.
Let's say the input is ab2ac999 then you have ['a','b','2','c','9'] is 
the set of characters.
We can map this set to another set : [3,1,5,6,0].
Which mean character 'a' represents for 3, 'b'->1, '2'->5 .....
then you have the number 313560000, after that you can choose whatever 
base for this number, here in the example, they choose 10.

if you choose the set [1,2,3,4,5] to map, and with base 6, you will have 
the second result.

Mahendra Kariya wrote:
> can someone explain how ab2ac999 is  31356000 in base 10 or 1231455 in 
> base 6?
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to