put Format:
The output contains the total distance T.
Sample Input1:
hears
heard
Sample Output1:
15
Explanation 1:
Distance between respective pairs of characters in X and Y are given in the table:
0
1
2
3
4
a
r
Index
Х
Y
Distance
h
h
0
a
S
d
15
e
0
r
0
0
Total distance T = 0+0+0+0+15 = 15 which is printed as output.
Sample Input2:
smile
smoke
itout2:
Answers
Answered by
0
Answer:
the answer is what means 369842
Similar questions
Hindi,
4 months ago
English,
4 months ago
History,
8 months ago
Social Sciences,
1 year ago
English,
1 year ago