According to the rules, water will not flow from the 6 in the first row to the 6 in the second row.Hence the second row will take up 'b' because none of the paths from the second row end up in the first row, it is a completely different/new path.
Hope that makes it at least a bit more clear. Thanks & Regards, Dhruva Sagar. Jonathan Swift<http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html> - "May you live every day of your life." On Mon, Sep 7, 2009 at 8:25 AM, jz <[email protected]> wrote: > > hey folks, good job with gcj. > > i couldn't understand something in prob B 'watersheds'. > > > in following case in sample input, > [2 3] > 7 6 7 > 7 6 7 > > now upper 6 and downer 6 has same altitude. > > So what i thought was i should follow "NORTH WEST EAST SOUTH" rule, > > so upper 6 must be the sink, and the basin map should be > > a a a > a a a > > not > a a a > b b b > > i don't understand why BOTH 6s are sinks. 'flows' follow 'tie > situations' but 'sinks' don't? > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
