摘要:
此题目使用Trie树,代码中的N代表着节点可能的最大个数。 #include<iostream> using namespace std; const int N = 3100010; int son[N][2], num[100010], idx; void insert(int k){ scan 阅读全文
posted @ 2022-05-01 17:00
bz-2021
阅读(35)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; const int N = 100010; int son[N][26], cnt[N], idx; char str[N]; void insert(char *str){ int p = 0; for(int i = 阅读全文
posted @ 2022-05-01 11:33
bz-2021
阅读(14)
评论(0)
推荐(0)