Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

请问这个是神马模板????用这个过了N个水题了,,,不知道它叫什么还,,,

Posted by yy17yy at 2010-12-03 10:54:10 on Problem 2446
用这个过了N个水题了,,,不知道它叫什么还,,,

bool dfs(int i)
{
	int j;
	for(j=1;j<=num;j++)
	{
		if(!v[j]&&map[i][j])
		{
			v[j]=true;
			if(match[j]==0||dfs(match[j]))
			{
				match[j]=i;
				return true;
			}
		}
	}
	return false;
}
//v->visit

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator