摘要:
【BZOJ1006】神奇的国度(弦图) 题面 "BZOJ" 题解 直接参考 "弦图的做法" cpp include include include include include include include include include include using namespace std; 阅读全文
摘要:
【BZOJ2946】公共串(后缀数组) 题面 权限题。。。 只有 "CJOJ" 题面啦 Description 给出几个由小写字母构成的单词,求它们最长的公共子串的长度。 任务: 读入单词,计算最长公共子串的长度 Input 第一行是整数 n,1 include include include in 阅读全文
摘要:
【POJ2774】Long Long Message(后缀数组) 题面 "Vjudge" Description Little cat在Byterland的首都读物理专业。这些天他收到了一条悲伤地信息:他的母亲生病了。担心买火车票花钱太多(Byterland是一个巨大的国家,因此他坐火车回家需要16 阅读全文
摘要:
【Luogu2444】病毒(AC自动机) 题面 "洛谷" 题解 如果存在一个无限长的串 证明可以在$AC$自动机上找到一个环 然后在上面可以无限跳 所以构建$AC$自动机 在上面跑$dfs$就好啦 cpp include include include include include include 阅读全文
摘要:
【Luogu1501】Tree(Link Cut Tree) 题面 "洛谷" 题解 $LCT$版子题 看到了顺手敲一下而已 注意一下,别乘爆了 cpp include include include include include include include include include in 阅读全文