摘要: 原题链接 题解 对于区间,其末尾,要么没有操作过,要么被最后一个元素往前操作,要么被前面的元素往后操作 code #include<bits/stdc++.h> using namespace std; #define ll long long ll a[300005]; ll dpl[300005 阅读全文
posted @ 2024-06-12 17:35 纯粹的 阅读(58) 评论(0) 推荐(0)
摘要: 原题链接 题解 找到每一个点右边能递增多远和左边能递增多远 code #include<bits/stdc++.h> using namespace std; int a[100005],r[100005],l[100005]; int main() { int n,m; cin>>n>>m; fo 阅读全文
posted @ 2024-06-12 11:27 纯粹的 阅读(20) 评论(0) 推荐(0)