#209-[KMP]字符串匹配

Description 来自传题者的善意 Sample Input 来自传题者的善意 Sample Output HINT Uploaded By MCHacker 样例的一个输出数有误,应该是-1。 求模式串在文本串中的第一次出现位置,可以用KMP。 #include <iostream> #include <cstdio> #include <string> #include <vector>
相关文章
相关标签/搜索