Not the nicest one, but I have a solution for you, which solves both the large and small problems: https://github.com/hierynomus/google-code-jam/blob/master/scala/src/main/scala/nl/javadude/scalajam/gcj09/qualify/Watersheds.scala
Regards, Jeroen On Tue, Apr 26, 2011 at 5:14 AM, 이홍일 <[email protected]> wrote: > http://code.google.com/codejam/contest/dashboard?c=90101#s=p1 > > My solution for small input is correct, but that for large input is > incorrect. > > Is there anyone who solve the Qualification Round 2009 Problem B. > WaterShed? > > -- > 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. > -- 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.
