首页 > 【模板】双端队列
头像 自由的风0450
发表于 2025-11-15 22:58:46
#include <iostream> #include<deque> using namespace std; int main() { int q; cin>>q; deque<int>de; while(q--) 展开全文
头像 周康禧
发表于 2025-12-03 22:50:35
#include <bits/stdc++.h> using namespace std; using ll = long long int; using ld = long double; using PII=pair<ll,ll>; using PIII=pair< 展开全文
头像 牛客用户098471297
发表于 2025-11-28 13:21:45
#include<bits/stdc++.h> using namespace std; #define int long long #define endl '\n' #define quick ios::sync_with_stdio(false);cin.tie(0);cout.t 展开全文
头像 ccl_aurora
发表于 2025-12-31 09:09:18
#include <iostream> #include<deque> using namespace std; int main() { int q; cin>>q; deque<int>dq; while(q--) 展开全文
头像 黑麦威士忌echo版
发表于 2026-01-13 14:05:55
#include<iostream> using namespace std; const int N=600010; int a[N]; int hh=200000,tt=200000; int n; int main() { cin>>n; while( 展开全文
头像 hujiao
发表于 2025-12-27 20:00:29
怎么这题写的人这么少啊,不会都是杂❤鱼吧这题使用C++的STL里的deque就能秒杀快加入C++大家族学习STL吧如果是C语言或者不想用STL其实这题也能用循环数组写,应该叫这个名字吧通过弄一个arr[200010],定义一个int变量head初始0,同样定义一个tail初始200010最前方和最后 展开全文

等你来战

查看全部