摘要: #include <bits/stdc++.h> #define LL long long using namespace std; const int N = 2e5 + 10; int n, m; int w[N]; struct node { int l, r; int tag; }tr[N 阅读全文
posted @ 2022-02-01 23:30 Angels_of_Death 阅读(22) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #define LL long long using namespace std; const int N = 2e5 + 10; int n, m; int w[N]; struct node { int l, r; int Max; }tr[N 阅读全文
posted @ 2022-02-01 23:08 Angels_of_Death 阅读(32) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #define LL long long using namespace std; const int N = 1e5 + 10; int n, m, p; int w[N]; struct Node { int l, r; int sum, add 阅读全文
posted @ 2022-02-01 21:12 Angels_of_Death 阅读(28) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #define LL long long using namespace std; const int N = 1e5 + 10; int n, m; LL w[N]; struct node { int l, r; LL sum, add; }tr 阅读全文
posted @ 2022-02-01 17:20 Angels_of_Death 阅读(28) 评论(0) 推荐(0)
摘要: A 暴力 #include <bits/stdc++.h> using namespace std; int T, a, b; int main() { cin >> T; while (T -- ) { int n; cin >> n; vector<int> v; while (n) { v.p 阅读全文
posted @ 2022-02-01 00:53 Angels_of_Death 阅读(84) 评论(0) 推荐(0)