UVA - 10391 Compound Words (字符串hash)

题意:找出由两个字符串拼起来的字符串输出 暴力搜索切点分开字符串,查找有没有两断都存在的 经过字符串hash散列 AC代码web #include<stdio.h> #include<string.h> #include<vector> using namespace std; struct Hash { int hash[50500]; int head[50500];
相关文章
相关标签/搜索