【YBTOJ】单词查询
思路:
直接模板
codecodecode
#include<iostream>
#include<cstdio>
#include<cstring>
#include<queue>
using namespace std;
int t;
int n;
string s;
int trie[100100][27], nxt[100100], tot, bo[100100];
void add(string s)
{
int p=0;
for(..
原创
2021-08-11 22:17:31 ·
75 阅读 ·
0 评论