AcWing 830. 单调栈
2020-12-25 02:28
阅读:491
标签:++ amp mes return ret cout ons namespace sync
AcWing 830. 单调栈
#include
using namespace std;
const int N=1e6+10;
int n;
int stk[N],tt;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
cin>>n;
for(int i=0;i>x;
while(tt&&stk[tt]>=x) tt--;
if(tt) cout
AcWing 830. 单调栈
标签:++ amp mes return ret cout ons namespace sync
原文地址:https://www.cnblogs.com/wiseXu/p/13396690.html
评论
亲,登录后才可以留言!