摘要:
题目传送门 点击查看代码 #include<bits/stdc++.h> using namespace std; constexpr int N = 2e5 + 10; using LL = long long; LL a[N], t[2][N]; // a存储原始数据,t是二维树状数组,t[0] 阅读全文
摘要:
题目传送门 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2e4+10; int n; int l[N],r[N],len[N]; int dp[N][2]; //dp[i][0]表示停留在本行左端点 //那么就 阅读全文