摘要:
单调队列 滑动窗口 code #define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e6 + 100; int a[N], 阅读全文
摘要:
单点修改 区间查询 模板(维护区间和) #define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; const int N = 3e6 阅读全文
摘要:
解法一 树形DP #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; const int N = 1e5 + 10; vector<int>e[N]; 阅读全文