Longest Common Substring
Time Limit: 8000/4000 MS (Java/Others)
Memory Limit: 65536/32768 K (Java/Others)
Given two strings, you have to tell the length of the Longest Common Substring of them.
str1 = banana
str2 = cianaic
So the Longest Common Substring is "ana", and the length is 3.
The input contains several test cases. Each test case contains two strings, each string will have at most 100000 characters. All the characters are in lower-case.
Process to the end of file.
For each test case, you have to tell the length of the Longest Common Substring of them.