10 2019 档案

摘要:KMP未优化: #include <iostream> #include <string> using namespace std; /* P 为模式串,下标从 0 开始 */ void GetNext(string P, int next[]) { int p_len = P.size(); in 阅读全文
posted @ 2019-10-16 16:23 kaike 阅读(119) 评论(0) 推荐(0) 编辑
摘要:Codeforces Round #271 (Div. 2) E待填坑 1 #include <iostream> 2 #include <cstdio> 3 #include 4 #include <cstring> 5 #include <vector> 6 using namespace st 阅读全文
posted @ 2019-10-05 15:59 kaike 阅读(116) 评论(0) 推荐(0) 编辑
摘要:D. Distinct Characters Queries Description You are given a string ss consisting of lowercase Latin letters and qq queries for this string. Recall that 阅读全文
posted @ 2019-10-02 13:51 kaike 阅读(453) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示