摘要:
代码风格迥异 …… #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 阅读全文
摘要:
代码风格迥异 …… 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] 阅读全文
摘要:
转换成最小割; #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 阅读全文