The string "zig" is the encoding of a number in some base, with digits 
relabelled.

So "zig" could represent 187 in base 10 or (14)x100^2+(28)*100+57=142857 in 
base 100 or (1)x3^2+(0)x3+2=11 in base 3. Any number in any base with 3 
different digits. It turns out the smallest number that has such a 
representation is 11.



On 16 Jan 2013, at 02:16, AntonyD <[email protected]> wrote:

> Please post the link to the problem
> 
> On Sunday, January 13, 2013 10:07:46 AM UTC-6, ibrar wrote:
> this problem has been driving me nuts.i've been trying to solve it for past 3 
> hours , to make a logic out of it but still to no use.Can somebodyy please 
> clarify what does this problem ask you to do? Do we have to convert the 
> string to some lowest number by trying different bases or is there some trick 
> behind how the reslt is encoded?I have done all the other problems prior to 
> this.So this is kind of driving me insane.any help?
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Code Jam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-code/-/b-hZGKDr9JMJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" 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 https://groups.google.com/groups/opt_out.


Reply via email to