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:能不能告诉我区别下?

Posted by 962861784 at 2011-06-17 13:51:24 on Problem 3692
In Reply To:能不能告诉我区别下? Posted by:shock at 2009-08-05 17:37:33
> 为什么我用
> 		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