牛客三F Planting Trees

https://ac.nowcoder.com/acm/contest/883/F?&headNav=acm 枚举上下边界,而后,枚举右边界,合法的矩形左边界关于右边界向右而向右,用单调队列来作。 这题卡RMQ,而且卡STL。c++ #include<bits/stdc++.h> using namespace std; const int maxn=600; int T,n,m,a[maxn]
相关文章
相关标签/搜索