(2017多校训练第二场)HDU - 6047 Maximum Sequence 贪心 + 单调队列

比赛的时候是用线段树写的,赛后看了题解发现还有单调队列这种操做。html 官方题解:c++ 想学习单调队列能够看下这篇博客:点击打开连接学习 代码以下:spa #include <bits/stdc++.h> using namespace std; typedef long long int LL; const int MAX_N = 250005; const int MOD = 1e9
相关文章
相关标签/搜索