【2015-2016 ACM-ICPC, NEERC, Northern Subregional Contest C】【脑洞 本质不同实现的转化】Concatenation A串为前缀B串为后缀不同串
#include
#include
#defineMS(x,y)memset(x,y,sizeof(x))
typedeflonglongLL;
constintN=1e5+10,M=0,Z=1e9+7,ms63=1061109567;
chara[N],b[N];
intc[128];
voidfre()
{
freopen("concatenation.in","r",stdin);
freo