摘要:
单调栈 // 求离某个元素最近的第一个比他大的或者比他小的元素的角标 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 2e5+10; int q[N], hh = -1, a[N]; f 阅读全文
posted @ 2022-03-28 21:50
牛佳文
阅读(72)
评论(0)
推荐(0)
摘要:
堆 没有.clear()操作 多路归并,mlogm #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int, int> PII; const int N = 1e5+10; priorit 阅读全文
posted @ 2022-03-28 21:04
牛佳文
阅读(55)
评论(0)
推荐(0)

浙公网安备 33010602011771号