摘要: #include<cstdio>#include<cstring>constintmaxn=20000;structnode{node*ch[26],*f;intl,xx;}a[maxn],*head,*last;charch1[maxn],ch2[maxn],s1[maxn],s2[maxn];intn,top,ok,t;voidadd(intx){node*p=&a[++top],*mid;p->l=last->l+1;p->xx=p->l;mid=last,last=p;for(;mid&&!mid->ch[x 阅读全文