![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
单调队列
Knight.Panda
ᕕ(˵•̀෴•́˵)ᕗ上分吗
展开
-
//单调队列 HDU 3530Subsequence
单调队列#include<bits/stdc++.h>using namespace std;const int N=100010;int q1[N],q2[N],a[N];int main(){ int n,l,r; while(~scanf("%d%d%d",&n,&l,&r)) { for(int i=1;i<=n;i++) s...原创 2019-09-27 16:30:21 · 81 阅读 · 0 评论 -
树状数组 求区间最大+暴力剪枝 ??单调队列?? Planting Trees
牛客多校链接:https://ac.nowcoder.com/acm/contest/883/F来源:牛客网题目描述The semester is finally over and the summer holiday is coming. However, as part of your university’s graduation requirement, you have to t...原创 2019-09-27 16:59:19 · 82 阅读 · 0 评论