10 2019 档案
摘要:KMP未优化: #include <iostream> #include <string> using namespace std; /* P 为模式串,下标从 0 开始 */ void GetNext(string P, int next[]) { int p_len = P.size(); in
阅读全文
摘要:Codeforces Round #271 (Div. 2) E待填坑 1 #include <iostream> 2 #include <cstdio> 3 #include 4 #include <cstring> 5 #include <vector> 6 using namespace st
阅读全文
摘要:D. Distinct Characters Queries Description You are given a string ss consisting of lowercase Latin letters and qq queries for this string. Recall that
阅读全文