摘要: 题目 代码 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 100010; int queue[N]; int hh = 0, tt = -1; //[hh, 阅读全文
posted @ 2025-02-27 16:46 electricity111 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 题目 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 100010; int stack[N], tt; void push_stack(int x) 阅读全文
posted @ 2025-02-27 16:33 electricity111 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 题目 代码 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 100010; int e[N], idx, l[N], r[N]; void init() { 阅读全文
posted @ 2025-02-27 16:04 electricity111 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 题目 代码 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 100010; int head, idx, e[N], ne[N]; // 两个值,两个数组 / 阅读全文
posted @ 2025-02-27 11:12 electricity111 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 题目 关于map和set的区别 该题的题解 #include <iostream> #include <algorithm> #include <cstring> #include <vector> #include <unordered_set> using namespace std; type 阅读全文
posted @ 2025-02-26 16:15 electricity111 阅读(1) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示