摘要: #include #include #include using namespace std; const int maxn=100000+10; int trie[maxn][20]; char c[maxn][20]; int tot; bool endi[maxn*20]; void myinsert(char* st){ int len=strlen(st); i... 阅读全文
posted @ 2018-05-15 19:28 lmjer 阅读(253) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; const int maxn=1000+10; bool tu[maxn][maxn]; int h[maxn][maxn],l[maxn],r[maxn]; int main(){ int n,k,m; char c[10]; scanf("%d",&k); w... 阅读全文
posted @ 2018-05-15 18:26 lmjer 阅读(219) 评论(0) 推荐(0) 编辑