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 1689. Fisherman and Barbell

Wrong Answer #3
Posted by Reza 12 Mar 2009 16:12
Hi,

I got WA at test #3. I have applied all of the samples above to the algorithm and the program output the correct result. Any body can help me?
Re: Wrong Answer #3
Posted by Reza 12 Mar 2009 16:14
I meant by above to the samples in the last posts.
Re: Wrong Answer #3
Posted by LSBG 30 Aug 2009 13:54
Here are some tests that helped me pass test number 3:
Input:
8 2
4 1
7
0 0 2 3 4 6 6
Output:
2

Input:
10 2
4 1
5
0 1 4 7 8
Output:
3

Input:
20 20
2 1
1
0
Output:
0

Re: Wrong Answer #3
Posted by unlucky^2 [Vologda SPU] 14 Mar 2010 03:50
LSBG wrote 30 August 2009 13:54
Here are some tests that helped me pass test number 3:
Input:
8 2
4 1
7
0 0 2 3 4 6 6
Output:
2

Input:
10 2
4 1
5
0 1 4 7 8
Output:
3

Input:
20 20
2 1
1
0
Output:
0

first and second tests are not correct.
Worms cross themself.

Edited by author 14.03.2010 03:51