牛客三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]
相關文章
相關標籤/搜索