Did you by chance use the C++ pow() function? It uses floats and doubles in
it's calculations, so you run into some precision issues where numbers
like 29480883458974409 turn into 29480883458974400. This is because of the
way floats are internally stored.
I initially used pow() because I thought it would be quicker and less error
prone than writing my own power function. Ironically, I would have been
better off if I had written my own function.

I hope this helps!

Feross


On Sun, Sep 13, 2009 at 6:45 AM, Evan Jones <[email protected]> wrote:

>
> The logic looks ok as long as you define your base to be max(2,
> #distinct char in input).
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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