Sorry, answer from cell phone, the easiest way here is to use greedy. Will be fast enough. Try to make an operation which costs less. On Mar 24, 2012 12:23 AM, "Registered user" <[email protected]> wrote:
> the link for the problem is : > http://code.google.com/codejam/contest/544101/dashboard#s=p1 > > i cant understand what logic should i use : > > Recursion seems to be too tedious, > the solutions submitted by the contestants are without reursion but > couldnt follow them....... > > -- > 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.
