Every season at the cinnabar mines of Vermilion, someone must reorganize the archive shelves. This year the task falls to Petr, armed only with the stairwells register. Task: Print the length of the longest common subsequence of s and t. Input format: One line with two space-separated strings s and t. Output format: Print the LCS length. Constraints: 1 <= |s|,|t| <= 1200; lowercase letters.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= |s|,|t| <= 1200; lowercase letters.
