Problem2593--字符串+模拟算法练习 - Delete from the Left

2593: 字符串+模拟算法练习 - Delete from the Left

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

【题意】给定两个字符串,可以并且只能从左边删除这两个字符串的字母,问,最少删除多少个字母可以使得这两个字符串相等?

Sample Input Copy

codeforces
yes

Sample Output Copy

9

Source/Category