Trie
卧室踩被
The weakest OIer
展开
-
洛谷P2580 于是他错误的点名开始了
ProblemProblemProblem 传送门 SolutionSolutionSolution 1.Trie1.Trie1.Trie模板 2.map2.map2.map Accepted code:Accepted\ code:Accepted code: TrieTrieTrie #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const原创 2020-11-05 12:27:32 · 174 阅读 · 0 评论 -
UVA11732 “strcmp()“ Anyone?
DescriptionDescriptionDescription 传送门(洛谷真香 给nnn个字符串,求两两进行strcmpstrcmpstrcmp函数比较的总次数 n≤4000,len(s)≤1000n\leq4000,len(s)\leq1000n≤4000,len(s)≤1000 SolutionSolutionSolution 把每个串加入TireTireTire中 dfsdfsdfs统计 串结尾的'\0'也要加进去 Accepted codeAccepted\ codeAccepted原创 2020-11-05 11:46:27 · 107 阅读 · 0 评论