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 1314. Chase in Subway

WA on #3, can someone give me some tests or some hints?
Posted by Danica Porobic 2 Sep 2004 02:27
If someone wants to try to debug my code or give me a hint or help me some other way, send me a mail on dporobic@eunet.yu
Hint (+)
Posted by Danica Porobic 5 Sep 2004 15:44
Detail that made my WA #3 to AC : If the line is defined as follows: 3 1 2 3 then spans are 1-2 and 2-3, and not 1-3!!! Line aren't cycles....
Re: Hint (+)
Posted by AlexF 4 Sep 2006 11:40
When I had WA#3, this test helped:
1
1 1
1 1
The right answer is 1
Re: Hint (+)
Posted by Srihari Seshadri 5 Apr 2011 00:55
That isn't a valid test case, though, because the K >= 2. You cannot have a line with only one station.