摘要: #include <bits/stdc++.h> using namespace std; using pii = pair<int, int>; const int N = 1210, M = 15; int n, m, k, ds; unordered_map<string, int> var; 阅读全文
posted @ 2022-04-19 16:16 Xxaj5 阅读(30) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; bool vis[1300][130][70]; int dx[5] = {-1, 0, 1, 0, 0}, dy[5] = {0, 1, 0, -1, 0}; int 阅读全文
posted @ 2022-04-19 09:07 Xxaj5 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; int f[N]; bool havef[N]; int Size[N]; int find(int x) { if (x != f[x]) f[x] = find(f 阅读全文
posted @ 2022-04-19 08:31 Xxaj5 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1E5 + 10; int tr[N]; stack<int> stk; int lowbit(int x) { return x & -x; } void add(int x, 阅读全文
posted @ 2022-04-19 08:10 Xxaj5 阅读(27) 评论(0) 推荐(0) 编辑