摘要:
SAM+LCT模板题。 题目相当于求询问串在SAM上走到的状态的right集合大小,等于parent树上这个节点的子树中有多少前缀节点(right集合大小为1的节点)。 因为强制在线,所以parent树用LCT维护。注意是维护子树和。代码还是非常好写的,也非常好想。 c++ include usin 阅读全文
摘要:
[x] a task list item [x] list syntax required [x] normal formatting , @mentions, 1234 refs [x] incomplete [x] completed this is "a dalao" This is "an 阅读全文