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];
相關文章
相關標籤/搜索