Page 2 of 2

Posted: Tue Nov 07, 2006 9:37 pm
by Stephan.Ritscher
I have problems with the example

Code: Select all

abcde (length 5)
mnopqrstuvab (length 12)
Consider the string

Code: Select all

rstuvabcde (length 10)
This string is first cousin of abcde (you have to drop 5 (rstuv) of 10 characters).
But it's first cousin of mnopqrstuvab, too. (The common part ist 'rstuvab'.)
Drop mnopq of mnopqrstuvab (5 of 12 characters) and drop cde of rstuvabcde (3 of 10 characters).

So the strings are second cousins.
Is this true? I got WA untill now.

Posted: Wed Nov 08, 2006 3:54 am
by rio
Yes. It is true.

Posted: Thu Nov 09, 2006 1:20 pm
by Jan
Stephan.Ritscher wrote:I have problems with the example

Code: Select all

abcde (length 5)
mnopqrstuvab (length 12)
Yes the output should be 2. But my code produces 3. So, my description is wrong and so is my code. So, I can say that the judge's i/o files are not exhaustive enough. Thanks a lot for showing the error.