ac自动机
Tizzii
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Resource Archiver HDU - 3247 ac自动机+bfs+dp
一、内容 Great! Your new software is almost finished! The only thing left to do is archiving all your n resource files into a big one.Wait a minute… you realized that it isn’t as easy as you thought. Th...原创 2020-04-15 20:38:20 · 636 阅读 · 0 评论 -
Lost's revenge HDU - 3341 ad自动机+进制压缩
一、内容 Lost and AekdyCoin are friends. They always play "number game"(A boring game based on number theory) together. We all know that AekdyCoin is the man called "nuclear weapon of FZU,descendant of J...原创 2020-04-05 20:01:56 · 703 阅读 · 0 评论 -
ZOJ - 3228 Searching the String ac自动机重叠and不重叠匹配
一、内容Little jay really hates to deal with string. But moondy likes it very much, and she's so mischievous that she often gives jay some dull problems related to string. And one day, moondy gave jay an...原创 2020-04-04 20:02:00 · 601 阅读 · 0 评论 -
HDU - 2457 DNA repair ac自动机+dp
一、内容 Biologists finally invent techniques of repairing DNA that contains segments causing kinds of inherited diseases. For the sake of simplicity, a DNA is represented as a string containing characte...原创 2020-04-01 21:26:23 · 600 阅读 · 0 评论 -
HDU - 2296 Ring ac自动机 + dp
一、内容 For the hope of a forever love, Steven is planning to send a ring to Jane with a romantic string engraved on. The string's length should not exceed N. The careful Steven knows Jane so deeply tha...原创 2020-03-31 21:17:30 · 534 阅读 · 2 评论 -
HDU2825 Wireless Password ac自动机 + 状压DP
一、内容 Liyuan lives in a old apartment. One day, he suddenly found that there was a wireless network in the building. Liyuan did not know the password of the network, but he got some important informat...原创 2020-03-30 21:16:35 · 663 阅读 · 0 评论 -
Censored! POJ - 1625 ac自动机+dp+高精度
一、内容The alphabet of Freeland consists of exactly N letters. Each sentence of Freeland language (also known as Freish) consists of exactly M letters without word breaks. So, there exist exactly N^M di...原创 2020-03-29 21:06:28 · 710 阅读 · 0 评论 -
HDU - 2243 考研路茫茫单词情结 ac自动机+矩阵快速幂
一、内容 背单词,始终是复习英语的重要环节。在荒废了3年大学生涯后,Lele也终于要开始背单词了。一天,Lele在某本单词书上看到了一个根据词根来背单词的方法。比如"ab",放在单词前一般表示"相反,变坏,离去"等。于是Lele想,如果背了N个词根,那这些词根到底会不会在单词里出现呢。更确切的描述是:长度不超过L,只由小写字母组成的,至少包含一个词根的单词,一共可能有多少个呢?这里就不考虑...原创 2020-03-28 20:54:41 · 579 阅读 · 0 评论 -
DNA Sequence POJ - 2778 ac自动机+矩阵快速幂
一、内容It's well known that DNA Sequence is a sequence only contains A, C, T and G, and it's very useful to analyze a segment of DNA Sequence,For example, if a animal's DNA sequence contains segment ATC...原创 2020-03-27 21:38:43 · 785 阅读 · 1 评论 -
Detect the Virus ZOJ - 3430 ac自动机+模拟
一、内容 One day, Nobita found that his computer is extremely slow. After several hours' work, he finally found that it was a virus that made his poor computer slow and the virus was activated by a misop...原创 2020-03-26 21:41:26 · 733 阅读 · 0 评论 -
病毒侵袭持续中 HDU - 3065 ac自动机
一、内容 小t非常感谢大家帮忙解决了他的上一个问题。然而病毒侵袭持续中。在小t的不懈努力下,他发现了网路中的“万恶之源”。这是一个庞大的病毒网站,他有着好多好多的病毒,但是这个网站包含的病毒很奇怪,这些病毒的特征码很短,而且只包含“英文大写字符”。当然小t好想好想为民除害,但是小t从来不打没有准备的战争。知己知彼,百战不殆,小t首先要做的是知道这个病毒网站特征:包含多少不同的病毒,每种病毒出现了...原创 2020-03-22 20:29:04 · 505 阅读 · 0 评论 -
病毒侵袭 HDU - 2896 ac自动机
一、内容 当太阳的光辉逐渐被月亮遮蔽,世界失去了光明,大地迎来最黑暗的时刻。。。。在这样的时刻,人们却异常兴奋——我们能在有生之年看到500年一遇的世界奇观,那是多么幸福的事儿啊~~但网路上总有那么些网站,开始借着民众的好奇心,打着介绍日食的旗号,大肆传播病毒。小t不幸成为受害者之一。小t如此生气,他决定要把世界上所有带病毒的网站都找出来。当然,谁都知道这是不可能的。小t却执意要完成这不能的任...原创 2020-03-22 20:07:43 · 580 阅读 · 0 评论 -
DNA repair POJ - 3691 自动机+dp
一、内容Biologists finally invent techniques of repairing DNA that contains segments causing kinds of inherited diseases. For the sake of simplicity, a DNA is represented as a string containing character...原创 2020-03-19 20:51:12 · 582 阅读 · 0 评论
分享