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 |
为啥我从N找P的匹配就WA,从P找N的匹配就AC???如下: for (int i=1;i<=p;i++){ memset(used, false, sizeof(used));//每次对循环中的used进行初始化 if(search(i)) count++; }//AC 但是: for (int i=1;i<=n;i++){ memset(used, false, sizeof(used));//每次对循环中的used进行初始化 if(search(i)) count++; }//WA Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator