摘要:
int cnt; struct Edge { int v, nxt; //int w; }e[maxn]; int head[maxn]; inline void init() { memset(head, -1, sizeof(head)); } void add(int u, int v/*,i 阅读全文
posted @ 2019-10-09 17:40
thjkhdf12
阅读(109)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<string> #include<queue> #include<stack> #include<vector> #include<map> #include<cstdio> #include<cstdlib> #include<algorit 阅读全文
posted @ 2019-10-09 17:35
thjkhdf12
阅读(166)
评论(0)
推荐(0)
摘要:
1 const int maxn = 100010; 2 int fa[maxn]; 3 4 int find(int x) 5 { 6 if (fa[x] == x) return x; 7 fa[x] = find(fa[x]); 8 return fa[x]; 9 } 10 11 void merge(int a, int b) 12 { 13... 阅读全文
posted @ 2019-10-09 13:59
thjkhdf12
阅读(95)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 using namespace std; 3 4 int n, m; 5 int a[10010], b[10010], c[10010]; 6 int x[10010]; 7 8 int main() 9 { 10 cin >> n >> m; 11 阅读全文
posted @ 2019-10-09 13:55
thjkhdf12
阅读(98)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<queue> 4 using namespace std; 5 6 int a[100010]; 7 int b[100010]; 8 int p[100010]; 9 10 bool ope 阅读全文
posted @ 2019-10-09 13:54
thjkhdf12
阅读(87)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<queue> 3 using namespace std; 4 5 #define debug(a) cout<<"debug: "<<a<<endl 6 7 struct Pro 8 { 9 int num, re, us, le; 阅读全文
posted @ 2019-10-09 13:54
thjkhdf12
阅读(98)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<queue> 3 #include<algorithm> 4 using namespace std; 5 6 priority_queue<int>heapb; 7 priority_queue<int, vector<int>, g 阅读全文
posted @ 2019-10-09 13:53
thjkhdf12
阅读(97)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<cstring> 3 #define debug(i) cout<<"(i): "<<i<<endl 4 using namespace std; 5 6 int fa[400010]; 7 8 int find(int x) 9 { 阅读全文
posted @ 2019-10-09 13:51
thjkhdf12
阅读(107)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 using namespace std; 3 4 int fa[150010]; 5 int n, k; 6 int cnt; 7 8 int find(int x) 9 { 10 if (x == fa[x]) return x; 11 fa[x] = 阅读全文
posted @ 2019-10-09 13:51
thjkhdf12
阅读(95)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 #include <algorithm> 3 using namespace std; 4 5 struct Node 6 { 7 int u, v, w; 8 }node[200005]; 9 10 int s[5005]; 11 int n, m; 阅读全文
posted @ 2019-10-09 13:50
thjkhdf12
阅读(109)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 using namespace std; 3 int b[10010]; 4 5 int find(int n) 6 { 7 if (b[n] == n) return n; 8 return b[n] = find(b[n]); 9 } 10 int 阅读全文
posted @ 2019-10-09 13:49
thjkhdf12
阅读(96)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 5 int fa[1010]; 6 int n, m; 7 8 int find(int x) 9 { 10 if (fa[x] == x) return x; 1 阅读全文
posted @ 2019-10-09 13:48
thjkhdf12
阅读(125)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<cstring> 3 using namespace std; 4 5 int head[101]; 6 int cnt; 7 8 struct Edge 9 { 10 int u, next; 11 }e[10010]; 12 13 阅读全文
posted @ 2019-10-09 13:47
thjkhdf12
阅读(124)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<stack> 3 #include<vector> 4 #include<algorithm> 5 using namespace std; 6 7 int n, m; 8 int dfn[5010], low[5010]; 9 boo 阅读全文
posted @ 2019-10-09 13:45
thjkhdf12
阅读(134)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<vector> 5 using namespace std; 6 7 vector<pair<int,int>>nextval[10010]; 8 bo 阅读全文
posted @ 2019-10-09 13:44
thjkhdf12
阅读(113)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 5 int fa[20010]; 6 7 int find(int x) 8 { 9 if (x == fa[x]) 10 return x; 11 fa[x] = 阅读全文
posted @ 2019-10-09 13:42
thjkhdf12
阅读(120)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 5 int n; 6 int dis[35][35]; 7 8 int main() 9 { 10 while (cin >> n) 11 { 12 if (!n) 阅读全文
posted @ 2019-10-09 13:40
thjkhdf12
阅读(108)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<fstream> 3 #include<queue> 4 #include<set> 5 #include<cstdio> 6 using namespace std; 7 8 //#define cin fin 9 10 int ma 阅读全文
posted @ 2019-10-09 13:38
thjkhdf12
阅读(138)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cmath> 4 #include<iomanip> 5 using namespace std; 6 7 int fa[501]; 8 9 int find(int x) 10 { 11 i 阅读全文
posted @ 2019-10-09 13:36
thjkhdf12
阅读(112)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 5 int fa[301]; 6 7 int find(int x) 8 { 9 if (x == fa[x]) return x; 10 fa[x] = find 阅读全文
posted @ 2019-10-09 13:35
thjkhdf12
阅读(98)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 5 int fa[200010]; 6 int n; 7 int cnt; 8 9 struct Edge 10 { 11 int u, v, w; 12 bool 阅读全文
posted @ 2019-10-09 13:34
thjkhdf12
阅读(122)
评论(0)
推荐(0)
摘要:
1 #include<cstdio> 2 #include<algorithm> 3 #include<iostream> 4 using namespace std; 5 #define INF 0x3f3f3f3f 6 using namespace std; 7 8 int n, m, k; 阅读全文
posted @ 2019-10-09 13:32
thjkhdf12
阅读(116)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<queue> 3 #include<cstring> 4 using namespace std; 5 6 int cost[201]; 7 int g[201][201]; 8 int n, b, e; 9 int temp[1]; 阅读全文
posted @ 2019-10-09 13:32
thjkhdf12
阅读(115)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<cstring> 3 #include<queue> 4 using namespace std; 5 6 int g[2501][2501]; 7 int n; 8 int m; 9 int be; 10 int en; 11 int 阅读全文
posted @ 2019-10-09 13:30
thjkhdf12
阅读(97)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 using namespace std; 3 4 int n; 5 int nextval[100010]; 6 int sum[100010]; 7 int circle[100010]; 8 int mark; 9 bool vis[100010] 阅读全文
posted @ 2019-10-09 13:28
thjkhdf12
阅读(109)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<string> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 7 bool edge[127][127]; 8 int n; 9 int h; 10 阅读全文
posted @ 2019-10-09 13:27
thjkhdf12
阅读(104)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 using namespace std; 5 6 struct Edge 7 { 8 int n; 9 int next; 10 }edge[100010]; 11 阅读全文
posted @ 2019-10-09 13:26
thjkhdf12
阅读(104)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<cstring> 3 #include<algorithm> 4 using namespace std; 5 6 int nextval[200010]; 7 int fcnt[200010]; 8 bool vis1[200010] 阅读全文
posted @ 2019-10-09 13:25
thjkhdf12
阅读(108)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 5 int n, m, k; 6 int s1[101], s2[101], f[101][101][11]; 7 8 int main() 9 { 10 cin 阅读全文
posted @ 2019-10-09 13:23
thjkhdf12
阅读(114)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 using namespace std; 3 4 const int INF = 0x3f3f3f3f; 5 6 int a, b, n; 7 int g[1010][1010]; 8 int maxn[1010][1010], minn[1010][1 阅读全文
posted @ 2019-10-09 13:22
thjkhdf12
阅读(102)
评论(0)
推荐(0)
摘要:
1 #include <cmath> 2 #include <cstdio> 3 #include <cstring> 4 #include <iostream> 5 #include <algorithm> 6 using namespace std; 7 8 const int INF = 0x 阅读全文
posted @ 2019-10-09 13:20
thjkhdf12
阅读(89)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<cstdio> 5 using namespace std; 6 7 const int maxn = 510; 8 9 char s[maxn]; 1 阅读全文
posted @ 2019-10-09 13:19
thjkhdf12
阅读(102)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 using namespace std; 3 4 int n, m; 5 const int mod = 9999973; 6 7 inline long long mul(long long x, long long y) 8 { 9 long lon 阅读全文
posted @ 2019-10-09 13:18
thjkhdf12
阅读(110)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 using namespace std; 5 6 pair<int, int> p[210]; 7 int f[210][40010]; 8 int sum[210]; 阅读全文
posted @ 2019-10-09 13:16
thjkhdf12
阅读(290)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 using std::cin; 5 using std::cout; 6 using std::max; 7 using std::min; 8 using std::e 阅读全文
posted @ 2019-10-09 13:14
thjkhdf12
阅读(108)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 using namespace std; 5 6 struct node 7 { 8 int to, w, nxt; 9 node() {}; 10 node(int a 阅读全文
posted @ 2019-10-09 13:12
thjkhdf12
阅读(112)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 #include <algorithm> 3 using namespace std; 4 5 int dp[101][1001]; 6 7 struct rub 8 { 9 int t, g, h; 10 }c[101]; 11 12 bool cm 阅读全文
posted @ 2019-10-09 13:11
thjkhdf12
阅读(102)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<cstring> 3 #include<algorithm> 4 using namespace std; 5 6 int pos[51]; 7 int w[51]; 8 int sum[51][51]; 9 int f[51][51] 阅读全文
posted @ 2019-10-09 13:10
thjkhdf12
阅读(106)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cstdio> 4 using namespace std; 5 6 int a[810][810]; 7 int f[810][810][20][2]; 8 const int mod = 阅读全文
posted @ 2019-10-09 13:08
thjkhdf12
阅读(122)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 #include <algorithm> 3 #include <vector> 4 #include <cstring> 5 using namespace std; 6 7 #define lll __int128 8 9 int n, m; 10 阅读全文
posted @ 2019-10-09 13:07
thjkhdf12
阅读(106)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 using namespace std; 5 6 int w[21]; 7 bool f[2010]; 8 bool th[21]; 9 int n, m; 10 阅读全文
posted @ 2019-10-09 13:05
thjkhdf12
阅读(120)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<fstream> 5 using namespace std; 6 7 int n, m; 8 int h[510][510]; 9 int dx[4] 阅读全文
posted @ 2019-10-09 13:04
thjkhdf12
阅读(94)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<algorithm> 3 #include<cmath> 4 using namespace std; 5 6 bool s[7]; 7 double x[7], y[7], r[7], xa, ya, xb, yb, maxs; 8 阅读全文
posted @ 2019-10-09 13:02
thjkhdf12
阅读(108)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<cstring> 3 #include<algorithm> 4 using namespace std; 5 6 int s[66]; 7 int n; 8 int nextval[66]; 9 int sum; 10 int l; 阅读全文
posted @ 2019-10-09 12:59
thjkhdf12
阅读(92)
评论(0)
推荐(0)
浙公网安备 33010602011771号