If you were using C++ on windows (bcc32 or something), you could've
used INT64 or LONG64 (basetsd.h) to handle the larger inputs.

@Feross: I made the stupid mistake of using pow(). -_- Should've used
this instead: ans = ans * Base + Di

Oh well.... :P
--~--~---------~--~----~------------~-------~--~----~
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