# include & ltstring.h & gt
主()
{
int n,j;
char str【】【】;
scanf(“% d“,& ampn);
for(j = 0;j & ltn;j++)
gets(str【j】);
char字符串【255】;
scanf(“% s“,string);
int h,k,m,min
int num = 0;
int a=0,b=0,c = 0;
for(j = 0;j & ltn;j++)
{
h=strlen(字符串);
k = strlen(str【j】);
如果(h=k)
{
for(m = 0;m & lth;m++)
{
if(string【m】!= str【j】【m】)
{ num++;
if(num & gt;1)
喙;
}
如果(數量==0)
{
while(a = 0)
a = j;
}
else if(num = = 1)
{
while(b = 0)
b = j;
}
}
else if(h = k+1 | | h = k-1)
{
min =(h & lt;k)?h:k;
for(m = 0;m & ltminm++)
{
if(string【m】!= str【j】【m】)
{
num++;
喙;
}
while(num = = 0)
c = j;
}
}
}
while(a+b+ c)
printf(“N“);
printf(“% d,E%d,F%d“,& ampa & amp;b & amp;c);
}
我很久沒寫了。寫起來有點麻煩。請調試通過後先使用。