1529 - Coincidence
时间限制 : 1 秒
内存限制 : 32 MB
Find a longest common subsequence of two strings.
题目输入
First and second line of each input case contain two strings of lowercase character a…z. There are no spaces before, inside or after the strings. Lengths of strings do not exceed 100.
题目输出
For each case, output k – the length of a longest common subsequence in one line.
输入/输出样例
输入格式
google goodbye
输出格式
4