上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: #include <bits/stdc++.h> using namespace std; typedef long long ll; void _1(){ int t; cin>>t; while(t--){ int n;cin>>n; string s;cin>>s; int flag=1; f 阅读全文
posted @ 2021-05-06 08:45 Acception 阅读(46) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; struct node { int x,y; }f[500][500]; int n,m; node findth(node k) { if((f[k.x][k.y].x==k.x)&&(f[k.x][k.y] 阅读全文
posted @ 2021-05-05 20:02 Acception 阅读(91) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> typedef long long ll; using namespace std; const int maxn=1e6+10; int f[maxn],col[maxn]; int find(int x){ return f[x]==x?x:f[ 阅读全文
posted @ 2021-05-03 22:57 Acception 阅读(65) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/PinkRabbit/p/8593080.html 阅读全文
posted @ 2021-05-01 12:11 Acception 阅读(23) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #define priority_queue < ll, std::vector<ll>, std::greater<ll> > mnheap; #define REP(i,a,b) for (auto i = a; i != b; i++) #de 阅读全文
posted @ 2021-04-30 19:47 Acception 阅读(48) 评论(0) 推荐(0)
摘要: 设P是网络G中从a到z的满足以下条件的一条路径: (a) 对P中的每一条正向边(i,j),Fij<Cij (b) 对P中的每条反向边(i,j) ,0 <Fij 设 Δ = minX 其中 X 是由P中所有正向边(i,j)对应的数 Cij - Fij 和 P 中所有反向边(i,j)对应的数Fij组成的 阅读全文
posted @ 2021-04-29 19:13 Acception 阅读(39) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P1494 #include <iostream> #include <cmath> #include <algorithm> #include <iomanip> #include <vector> using namespace 阅读全文
posted @ 2021-04-28 22:19 Acception 阅读(76) 评论(0) 推荐(0)
摘要: https://www.acwing.com/solution/content/4614/ 阅读全文
posted @ 2021-04-28 11:54 Acception 阅读(22) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; typedef pair<int,int> PII; typedef pair<int,PII> PIII; const int N=1010,M=2e5+10; int head1[M<<1],head2[ 阅读全文
posted @ 2021-04-27 12:27 Acception 阅读(68) 评论(0) 推荐(0)
摘要: #include <iostream> #include <stack> #include <cstring> #include <unordered_map> using namespace std; typedef long long ll; stack<int>num; stack<char> 阅读全文
posted @ 2021-04-26 20:50 Acception 阅读(58) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页