02 2025 档案
摘要:link #include <bits/stdc++.h> using namespace std; stack<int> num; stack<char> op; void eval(){ int b = num.top(); num.pop(); int a = num.top(); num.p
阅读全文
摘要:link 根据时间求坐标,并对每一个时间对(r+g+y)取模,进行分段处理 #include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int r, y, g; cin >> r >> y >>
阅读全文
摘要:link 因为是在装车的时候聊天,暴力枚举区间相交总长度即可 #include <bits/stdc++.h> using namespace std; #define x first #define y second typedef pair<int, int> PII; const int N
阅读全文
摘要:link 将用操作和还操作分开进行排序 #include <bits/stdc++.h> using namespace std; const int N = 1010; int n, m, k; int a[N]; struct People{ int st, id, type; bool ope
阅读全文
摘要:link 方法一:模拟降落过程 #include <bits/stdc++.h> using namespace std; typedef pair<int, int> PII; int a[20][20], b[10][10]; bool st[20][20]; vector<PII> c, re
阅读全文
摘要:Z字形扫描 找规律即可 #include <bits/stdc++.h> using namespace std; const int N = 550; int a[N][N]; int n; signed main(){ cin >> n; for(int i = 1; i <= n; ++i){
阅读全文
摘要:Java三大使用平台 Java SE:Java语言的标准版,用于桌面应用的开发,是其他两个版本的基础 Java ME:Java语言的小型版,用于嵌入式电子设备或者小型移动设备 Java EE:Java语言的企业版,用于Web方向的网站开发(浏览器+服务器) Java跨平台原理: Java语言的跨平台
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; int N, M, A, B; vector<int> edge[510]; bool flag; int nums[510]; void dfs(int index){ if(nums[index
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; const int MAXN = 100010; int N, M; vector<int> tmp[110], res; int h[MAXN], vis[110]; void dfs(int u
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; const int N = 110; int res; int n, m, sx, sy; int g[N][N], dis[N][N]; pair<int, int> p[N*N]; int dx
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; vector<int> p, res; int find(int x){ if(x != p[x]) p[x] = find(p[x]); return p[x]; } void Union(int
阅读全文
摘要:link #include<bits/stdc++.h> using namespace std; #define ios ios::sync_with_stdio(false), cin.tie(0), cout.tie(0) const int N = 5; int n, k, ans, row
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int n; int p[N]; vector<int> g[N]; map<int, int> mp; void dfs(int x){ for(i
阅读全文
摘要:并查集 #include <bits/stdc++.h> using namespace std; int N, M; int p[510]; struct G{ int a, b; }g[5010]; bool sta[510]; int find(int x){ if(x != p[x]) x
阅读全文
摘要:line dfs #include <bits/stdc++.h> using namespace std; int N, M; vector<int> v, res; bool flag; void dfs(int cnt, int index){ if(cnt == M){ for(int i
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; map<string, vector<string>> mp; int N; signed main(){ cin >> N; getchar(); string s; for(int i = 1;
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; vector<int> pre, in, level(100000, -1); void levelorder(int root, int start, int end, int index){ i
阅读全文
摘要:link //在转换为前序遍历的过程中,进行层次遍历的操作 #include <bits/stdc++.h> using namespace std; const int N = 10010; vector<int> in, post; map<int, int> level; int n; voi
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; bool isMirror; vector<int> pre, post; int n; void getpost(int l, int r){ if
阅读全文
摘要:link #include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; int vis[N], next_[N]; struct Node { int now, val, ne; }node[N]; void print(
阅读全文
摘要:题目链接 #include <bits/stdc++.h> using namespace std; const int MAXN = 510; int N, M, S, D; int num[MAXN], g[MAXN][MAXN], cnt[MAXN], weight[MAXN], path[M
阅读全文