A newly opened detective agency is struggling with their limited intelligence to find out a secret information passing technique among its detectives. Since they are new in this profession, they know well that their messages will easily be trapped and hence modified by other groups. They want to guess the intensions of other groups by checking the changed sections of messages. First they have to get the length of longest match. You are going to help them.
Input
The input file may contain multiple test cases. Each case will contain two successive lines of string. Blank lines and non-letter printable punctuation characters may appear. Each Line of string will be no longer than 1000 characters. Length of each word will be less than 20 characters.
Output
For each case of input, you have to output a line starting with the case number right justified in a
题解:Longest Match(最长公共子序列+字符串划分为单词板子)
最新推荐文章于 2023-07-28 14:05:56 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)