poj 1035 Spell checker

来源:互联网 发布:网络打假流程 编辑:程序博客网 时间:2024/05/01 07:42

题意:首先输入一堆数据以 # 结束,然后输入一堆的查询数据 也 是以 # 结束。

然后按照 以下的规则:

?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那个函数。

代码: