摘要: 地址:http://codeforces.com/gym/101194 题目:略 思路: 这题做法挺多的,可以sam也可以后缀数组,我用sam做的。 1.我自己yy的思路(瞎bb的) 把第一个串建立sam,然后让其他串在上面跑。 每走到一个位置p,当前长度为num,就代表这个endpos集合里的长度 阅读全文
posted @ 2017-09-25 15:19 weeping 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 地址:http://acm.split.hdu.edu.cn/showproblem.php?pid=5558 题目: Alice's Classified Message Time Limit: 16000/8000 MS (Java/Others) Memory Limit: 131072/13 阅读全文
posted @ 2017-09-25 14:34 weeping 阅读(186) 评论(0) 推荐(0) 编辑