摘要: const int maxn = 2e5 + 5; const int INF = 0x3f3f3f3f; struct node { int num, dis; node(int n,int d):num(n),dis(d){} bool operator < (const node& a)con 阅读全文
posted @ 2020-02-06 12:42 Kiana- 阅读(71) 评论(0) 推荐(0)
摘要: 1 const int maxn = 4e5 + 5; 2 int trie[maxn][26]; 3 int color[maxn]; 4 int vis[maxn]; 5 int k = 1; 6 7 void insert(string w){ 8 int len = w.size(); 9 阅读全文
posted @ 2020-02-06 12:38 Kiana- 阅读(94) 评论(0) 推荐(0)