Qiuqiqiu  
不管道路多么崎岖坎坷,我永远不停下追逐梦想的脚步!

2012年5月19日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1507二分图匹配View Code 1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 const int N=110; 6 const int dx[4]={0,1,0,-1}; 7 const int dy[4]={1,0,-1,0}; 8 int mz[N][N],n,m; 9 int mat[N][N],vis[N][N];10 int f(int x,int y)11 {12 return ( 阅读全文
posted @ 2012-05-19 21:46 Qiuqiqiu 阅读(238) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1054View Code 1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 const int N=1510,M=3010; 6 struct edge 7 { 8 int v,next; 9 }e[M];10 int head[N],n,m;11 bool vis[N];12 int mat[N];13 void graphinit()14 {15 memset(head,-1,sizeof(hea 阅读全文
posted @ 2012-05-19 11:06 Qiuqiqiu 阅读(155) 评论(0) 推荐(0) 编辑