You're reading the input file wrong. The first line is the number of text cases.
Just because the two samples are close to each other does not mean that the lines correspond to each other. On 21 May 2010 08:58, bluelf <[email protected]> wrote: > hey , > i was just looking at some previous years problems . . here in this > one, we have to find smallest common happy no. of all the given > bases . > > http://code.google.com/codejam/contest/dashboard?c=188266# > > the sample they have provided says > > 143 is the least common happy no for base 2,3 > and 91 is least common happy no for base 2,3,7. > > have i misunderstood the question or there is really some thing wrong > in the sample...? > > -- > 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]<google-code%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-code?hl=en. > > -- Abizer -- 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.
