ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1281. River Basin

Did anybody had problems with test #23? (-)
Posted by ^^^ I'm going UP ^^^ 14 Aug 2005 23:25
Re: Did anybody had problems with test #23? (-)
Posted by Kit 16 Aug 2005 16:18
It is uncomplete problem's description. Rivers are considered to be connected ONLY if they have the same point. Sample of the different rivers below
2
2
0 1
0 0
2
-1 0
1 0

The answer is 0.
Thanks for the author :(((
Thank you! I've got AC. (-)
Posted by ^^^ I'm going UP ^^^ 16 Aug 2005 18:21


Edited by author 16.08.2005 18:22
Re: Thank you! I've got AC. (-)
Posted by Denis Koshman 12 Aug 2008 07:39
"The vertexes of the broken line are the turning points of the river-bed, or the points of tributary flow."

It looks like the last part is about that... But I didn't get it as absolutely necessary condition.

Edited by author 12.08.2008 07:43