#hdu1711

hdu1711

TimeLimit:10000/5000MS(Java/Others)MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):8078AcceptedSubmission(s):3670ProblemDescriptionGiventwosequencesofnu...
代码星球 ·2020-10-21

HDU1711 Number Sequence KMP

  给T组数据,每组有长度为n和m的母串和模式串。判断模式串是否是母串的子串,如果是输出最先匹配完成的位置,否则输出-1.  KMP裸题。#include<cstring>#include<algorithm>#include<cstdio>#include<cstdlib&g...
代码星球 ·2020-06-27