摘要:
#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 阅读全文
posted @ 2012-05-03 17:10
口香糖
阅读(484)
评论(0)
推荐(0)