摘要: 代码风格迥异 …… #include<bits/stdc++.h> const int N=100+10,M=100000+10; using namespace std; queue<int> q; int head[M],dis[M],flt[M],to[M],nxt[M],cn=1; int 阅读全文
posted @ 2018-04-29 09:35 horsepower2001 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 注意用当前弧优化! #include<queue> #include<cstdio> #include<cstring> #include<algorithm> const int MAXN=1e5+5; const int INF=1e9+7; int n,m; struct Edge { int 阅读全文
posted @ 2018-04-29 09:33 horsepower2001 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 注意好处理读入和读出一定用cin! #include <iostream> #include <cstring> #include <cstdio> #include <map> #define MX 80001 #define oo 12312312 #define S 1 #define T ( 阅读全文
posted @ 2018-04-29 09:31 horsepower2001 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 代码风格迥异 …… #include<bits/stdc++.h> const int N=1000+4,M=1000000+10,K=30+5; using namespace std; queue<int> q; int head[M],flt[M],nxt[M],to[M],cn=1; int 阅读全文
posted @ 2018-04-29 08:48 horsepower2001 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 代码风格迥异 …… 1 #include<bits/stdc++.h> 2 3 const int N=1000+5; 4 5 using namespace std; 6 7 int link[N],g[N][N],ansx[N]; 8 int n,m,u,v,ans; 9 bool vis[N] 阅读全文
posted @ 2018-04-29 08:46 horsepower2001 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 转换成最小割; #include <bits/stdc++.h> using namespace std ; const int mx [ 9 ] = { 2 , 2 , -2 , -2 , -1 , 1 , -1 , 1 } ; const int my [ 9 ] = { -1 , 1 , -1 阅读全文
posted @ 2018-04-29 08:44 horsepower2001 阅读(107) 评论(0) 推荐(0) 编辑