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

Re:哪位仁兄指点指点wa了好久了 , 都检查不出来!!!!!!!!!!

Posted by Euler_M at 2011-04-01 21:02:08 on Problem 1703
In Reply To:哪位仁兄指点指点wa了好久了 , 都检查不出来!!!!!!!!!! Posted by:sw1001 at 2011-04-01 20:47:37
int findset(int x)
{
	if(x!=father[x])
	{
		int temp=father[x];//这里!!!,去画画他们关系是怎么改变的图吧
		father[x]=findset(father[x]);
		kind[x]=(kind[x]+kind[temp])%2;

	}

	return father[x];

}

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