摘要:
AcWing 831. KMP字符串 #include <iostream> #include <string> using namespace std; const int N = 1E5 + 10, M = 1E6 + 10; int n, m; char p[N], s[M]; int ne[ 阅读全文
摘要:
AcWing 2. 01背包问题 #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N]; int main() { ci 阅读全文
摘要:
写在前边 链接:Codeforces Global Round 13 \(A,B,C,D\) A. K-th Largest Value 链接:A题链接 题目大意: 有一个字串只由$0、1$组成,有两个操作,$1$是让其中$a_x$变为$1-a_x$,$2$是询问数组中第$k$大的数。 思路: 很简 阅读全文