摘要: 线段树 单点修改,区间查询(子段和的最大值) 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 5e5 + 10; int n, m; int w[N]; struct No 阅读全文
posted @ 2022-07-20 23:40 wKingYu 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 线段树 单点修改,区间查询(最大值) 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 2e5 + 10; int m, p; struct Node { int l, r; 阅读全文
posted @ 2022-07-20 20:49 wKingYu 阅读(19) 评论(0) 推荐(0) 编辑