![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
KMP
亦往沧劫
这个作者很懒,什么都没留下…
展开
-
Sequence
题目描述给定一个含n个数的序列A和一个含m (m<=n) 个数的序列B。询问在A中有多少段连续的长为m的子序列Ak,Ak+1,…,Ak+m-1使得对于任意1<=i, j<=m满足Ak+i-1-Bi=Ak+j-1-Bj输入第一行两个整数n,m (1 <= m <= n <= 106)接下来一行n个整数,描述序列A (Ai <= 109)接下来一行m个整数,描...原创 2018-04-25 21:49:54 · 197 阅读 · 0 评论 -
Seek the Name, Seek the Fame
DescriptionThe little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-born babies. They seek the name, and at the same t...原创 2018-04-27 09:50:36 · 189 阅读 · 0 评论