守re
守re
全部文章
分类
归档
标签
去牛客网
登录
/
注册
守re的博客
全部文章
(共5篇)
题解 | #并查集的实现#路径压缩 + 小挂大
#include <bits/stdc++.h> using namespace std; const int MAXN = 1000001; int father[MAXN]; // 每个节点的父节点 int group_size[MAXN]; // 每个集合的大小 int...
2024-11-24
0
29
题解 | #单调栈结构(进阶)#
#include <bits/stdc++.h> using namespace std; #define endl '\n' const int MAXN = 1000001; int arr[MAXN]; int st[MAXN]; int ans[MAXN][2]; int n,...
2024-11-18
1
27
题解 | #机器人跳跃问题#
#include <bits/stdc++.h> using namespace std; #define endl '\n' const int MAXN = 100001; int arr[MAXN]; int n; bool f(int energe, int max){ ...
2024-11-14
1
29
题解 | #设计有setAll功能的哈希表#
#include <bits/stdc++.h> using namespace std; unordered_map<int,vector<int>> Map; int SetAllValue = 0,SetAllTime = -1,cnt = 0; voi...
2024-10-13
0
64
题解 | #线段重合#
#include <iostream> #include <vector> #include <queue> #include <algorithm> #include <iterator> #include <queue> ...
2024-09-28
1
67