hdu 1179 Ollivanders: Makers of Fine Wands since 382 BC. (二分匹配)
点击打开链接赤裸裸的二分匹配。。#include"stdio.h"
#include"string.h"
#defineN101
intmap[N][N],v[N],link[N],n,m;
intdfs(intk)
{
inti;
for(i=1;i<=n;i++)
{
if(map[k][i]&&!v[i])
{
v[i]=1;
if(link[i]==0||dfs(link[i]))
{
l