As a 30 WPM typer, you are sitting in a computer lab playing a modified version of TypeRacer in hopes of increasing your typing speed. In this game, your goal is to transform a given string of lowercase characters
Constraints
Input Specification
The first line contains the string
The second line contains the string
Output Specification
Output one integer, the minimum number of keystrokes needed to transform
Sample Input 1
adachi
shimamura
Sample Output 1
15
Sample Input 2
shinomiya
shirogane
Sample Output 2
12
Comments