7320: D_4

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:1 解决:1

题目描述

Do you know the Longest Common Substring? For example:
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.

样例输入 复制

banana
cianaic

样例输出 复制

3

提示

来源/分类