![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Algorithm
漠然oc
Hello World!
展开
-
HDU 5907 Find Q
Problem Description Byteasar is addicted to the English letter 'q'. Now he comes across a string S consisting of lowercase English letters. He wants to find all the continous substrings of S,原创 2016-10-09 17:06:48 · 649 阅读 · 0 评论 -
HDU 5908 Abelian Period
问题描述 设$S$是一个数字串,定义函数$occ(S,x)$表示$S$中数字$x$的出现次数。 例如:$S=(1,2,2,1,3),occ(S,1)=2,occ(S,2)=2,occ(S,3)=1$。 如果对于任意的$i$,都有$occ(u,i)=occ(w,i)$,那么我们认为数字串$u$和$w$匹配。 例如:$(1,2,2,1,3)\approx(1,3,2,1,2)$。 对于一个数原创 2016-10-10 16:33:18 · 348 阅读 · 0 评论