随笔分类 - 7.3 字符串——AC自动机
摘要:题面 https://www.luogu.org/problem/P3796 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3808 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3041 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3121 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2414 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/CF710F 题解 删除的情况另开一个“可支持插入的$AC$自动机”,因为贡献可减。 支持插入的$AC$自动机$=$$AC$自动机$+$二进制分组。
阅读全文
摘要:题面 http://darkbzoj.tk/problem/1444 题解 广为人知的图上随机游走模型(在这里,“图”指的是$trie$图) 终止节点向自己连“黑洞边”。 设计一个$dp$,$f[i][j]$表示$i$点在第$j$次轮游走中的期望拥有的人数/一个人在第$j$轮游走走到这里的概率(概率
阅读全文
摘要:题面 https://www.luogu.org/problem/P5319 追不到北京的小姐姐,只能写北京的省选了。。。。 题解
阅读全文

浙公网安备 33010602011771号