随笔分类 - 数据结构
摘要:区间加、区间查询 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int N = 1e5 + 10; struct SegmentTree{ in
阅读全文
摘要:既然是队列那么先要包含头文件#include <queue> 队列(queue) 声明 queue<数据类型> 队列名称; queue<int> q; struct node{ int x; int y; } queue<node> q; 基本操作 push(x) 将x压入队列的末端 pop() 弹
阅读全文

浙公网安备 33010602011771号