hdu 5918 Harmonic Value Description 2016ACM/CCPC长春赛区现场赛H
Problem DescriptionMr. Frog has two sequences a1,a2,⋯,an and b1,b2,⋯,bm and a number p. He wants to know the number of positions q such that sequence b1,b2,⋯,bm is exactly the sequence aq,aq+p