Hikari is a cute white dragon girl. She is helping Ninetail - a fox girl, her master - correct composition.The original composition is a string S and the corrected one is another string T.
Hikari claimed that she used a single
replaceAll function in doc to finish the correction. The function requires a
from string and a
to string and will replace all
to in the string S. Your task is to find out what’s the minimum sum of characters of
to to finish the change in one
S="my father is my mother's father"
In this example,
S="My pen is missing! Can you find my pen?"