Time limit
2s
Memory limit
128 MB
Given two strings X and Y, transform X into Y using the following edit operations. Each operation counts as one edit.
X.X.X with another lowercase English letter.X.Find the minimum number of edit operations needed to make X equal to Y.
The first line contains string X, and the second line contains string Y. Each string has length between 1 and 1,000, inclusive, and consists only of lowercase English letters.
Print the minimum number of edit operations needed to transform X into Y.