摘要:
链接: https://www.luogu.org/problem/P3796 题意: 有NN个由小写字母组成的模式串以及一个文本串TT。每个模式串可能会在文本串中出现多次。你需要找出哪些模式串在文本串TT中出现的次数最多。 思路: 字典树的每个结束节点记录对应的模板串标号, 匹配时记录次数. 代码 阅读全文
posted @ 2019-09-29 22:57
YDDDD
阅读(150)
评论(0)
推荐(0)
摘要:
链接: https://www.luogu.org/problem/P3808 题意: 给定n个模式串和1个文本串,求有多少个模式串在文本串里出现过。 思路: 模板, 代码: c++ include include include include // include include include 阅读全文
posted @ 2019-09-29 14:27
YDDDD
阅读(105)
评论(0)
推荐(0)
摘要:
链接: http://acm.hdu.edu.cn/showproblem.php?pid=4763 题意: It's time for music! A lot of popular musicians are invited to join us in the music festival. E 阅读全文
posted @ 2019-09-29 11:20
YDDDD
阅读(129)
评论(0)
推荐(0)
摘要:
链接: http://acm.hdu.edu.cn/showproblem.php?pid=4847 题意: Now, Doge wants to know how many words “doge” are there in a given article. Would you like to h 阅读全文
posted @ 2019-09-29 10:49
YDDDD
阅读(185)
评论(0)
推荐(0)
摘要:
链接: http://acm.hdu.edu.cn/showproblem.php?pid=3294 题意: One day, sailormoon girls are so delighted that they intend to research about palindromic strin 阅读全文
posted @ 2019-09-29 10:22
YDDDD
阅读(107)
评论(0)
推荐(0)
摘要:
链接: http://acm.hdu.edu.cn/showproblem.php?pid=4513 题意: 吉哥又想出了一个新的完美队形游戏! 假设有n个人按顺序站在他的面前,他们的身高分别是h[1], h[2] ... h[n],吉哥希望从中挑出一些人,让这些人形成一个新的队形,新的队形若满足以 阅读全文
posted @ 2019-09-29 09:45
YDDDD
阅读(167)
评论(0)
推荐(0)

浙公网安备 33010602011771号