| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:能不能告诉我区别下?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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator