How does zig represent 187 in base 10. zig has 3 letters hence its base is 3. The minimum value it can attain is 102 (base 3). If we convert it to base 10 we have 1 * 3^2 + 0 * 3^1 + 2 * 3^0 = 11. Am I missing something?
On Thursday, 17 January 2013 01:12:54 UTC+5:30, Luke wrote: > > 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] <javascript:>> > 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]<javascript:> > . > To unsubscribe from this group, send email to > [email protected] <javascript:>. > 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/google-code/-/-0DVEzNIZWsJ. For more options, visit https://groups.google.com/groups/opt_out.
