HDU 2444
摘要:主要是dfs染色判断奇圈+二分匹配#include<cstdio>
#include<string.h>
using namespace std;
int map[210][210],col[210];
int n,m;
int cx[210],cy[210];
bool mk[210];
bool dfs(int now){ int i; for(i=1;i<=n;i++) if(map[now][i]){ if(col[i]==-1){ col[i]=!col[now]; bool tem=dfs(i); if(tem==0) return ...
阅读全文
posted @ 2012-05-12 12:20
浙公网安备 33010602011771号