i think 11 decimal = 23 base 4 = CD On Mar 16, 11:21 pm, mandeep <[email protected]> wrote: > hi paul... i got it upto 11 decimal...will you pls explain later part > again... > thanks a lot.... > > On Fri, Mar 16, 2012 at 11:34 PM, Paul Smith <[email protected]>wrote: > > > > > > > > > A language with N digits in it is using a Base N number system. > > > Some 'languages' you are used to are decimal (0123456789), hexadecimal > > (0123456789abcdef) and binary (01) > > > The language oF8 is essentially a Base 3 language. Think of of8 as being > > 012. > > > Therefore, the number Fo8 in this language is actually like the base 3 > > number 102 which is 2 + (0*3^1) + (1*3^2) = 11 decimal. > > > The number 11 decimal in the language ABCD would be 11 decimal = 31 base 4 > > = DB. > > > So, if the question was > > > Fo8 oF8 ABCD > > > then the answer would be DB. > > > Alternatively, the input > > > 16 0123456789 0123456789ABCDEF > > > is merely saying to convert the decimal number 16 into hexadecimal. > > > Hope that helps! > > > Paul Smith > > > [email protected] > > > On Fri, Mar 16, 2012 at 5:28 PM, mandy <[email protected]> wrote: > > > hi there...can anyone tell what is the actual logic behind alien > > > number... > > > here is the link to the problem...http://code.google.com/codejam/ > > > contest/32003/dashboard#s=p0 > > > so pls..some one tell me logic behind this....not the program.. > > > thanks a lot.... > > > > -- > > > 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 this group at > >http://groups.google.com/group/google-code?hl=en. > > > -- > > 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 this group at > >http://groups.google.com/group/google-code?hl=en.
-- 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 this group at http://groups.google.com/group/google-code?hl=en.
