Every season at the wren hedges of Thimblewick, someone must rank apprentices for the new term. This year the task falls to Aria, armed only with the segments 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| <= 500; lowercase letters.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= |s|,|t| <= 500; lowercase letters.
