#include <stdio.h> #include <string.h> #include <stdlib.h> #define M 100001 #define N 100 struct node //链表数组 { int id; struct node *next; }*d[M]; char a[M][N],b[M][N]; char s[N],str[N]; unsigned int ELFHash(char *str) { unsigned int hash=0; unsigned int x=0; while(*str) { hash=(hash<<4)+(*str++); if((x=hash&0xF0000000L)!=0) { hash^=(x>>24); hash&=~x; } } return hash%M; } int main() { int i=0; struct node *p; while(scanf("%s",str),strcmp("@END@",str)) { int len=strlen(str); str[len-1]='