
Fail树
niiick
OIer/ACMer
展开
-
CodeForces - 163E e-Government【Fail树&&AC自动机】
CodeForces - 163ETime limit 1000 ms Memory limit 262144 kBThe best programmers of Embezzland compete to develop a part of the project called “e-Government” — the system of automated statistic collecting and press analysis.We know that any of the k citiz原创 2020-09-28 19:03:47 · 239 阅读 · 0 评论 -
Fail树--学习笔记
先看下面这个问题BZOJ3172 [Tjoi2013]单词Time Limit: 10 Sec Memory Limit: 512 MBDescription某人读论文,一篇论文是由许多单词组成。但他发现一个单词会在论文中出现很多次,现在想知道每个单词分别在论文中出现多少次。Input第一个一个整数N,表示有多少个单词,接下来N行每行一个单词。每个单词由小写字母组成,N<=20...原创 2019-02-28 16:16:19 · 2477 阅读 · 1 评论