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

能不能告诉我区别下?

Posted by shock at 2009-08-05 17:37:33 on Problem 3692
为什么我用
		memset( mat, 1, sizeof( mat ) );
		for( i=0; i<m; i++ )
		{
			scanf("%d%d",&s,&t);
			s--, t--;
			mat[s][t]  = 0;
		}
是AC
但是用:
		memset( mat, 1, sizeof( mat ) );
		for( i=0; i<m; i++ )
		{
			scanf("%d%d",&s,&t);
			s--, t--;
			mat[s][t] = mat[t][s] = 0;
		}
是WA  ???
有什么实质性的区别吗?

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