写的很详细,学到了。
问下 第17行 ch[u][c]=sz++; 不应该是 ch[u][c]=++sz; 吗?
ch[u][c]=sz++;
ch[u][c]=++sz;
为啥?
模数为1e9+7没法NTT吧……
快读?!