#include <stdio.h>
#include <string.h>
#define M 311
int m,n;
int map[M][M], match[M], chk[M];
int find(int p)
{
int i;
for(i=1;i<=n;i++)
if( map[p][i] && chk[i]==0 )
{
chk[i]=1;
if( match[i]==0 || find( match[i] ) )
{
match[i]=p;
return 1;
}
}
return 0;
}
int solve()
{
int i,res;
for(i=1,res=0; i<=m; i++)
{
memset(chk,0,sizeof(......
阅读全文