题意:首先输入一堆数据以 # 结束,然后输入一堆的查询数据 也 是以 # 结束。
然后按照 以下的规则:
?deleting of one letter from the word; //删除
?replacing of one letter in the word with an arbitrary letter; //代替
?inserting of one arbitrary letter into the word. //插入
问查询的数能否变成首先输入的数据。
思路:直接进行查询,很久以前写的。
注意right那个函数。
代码: