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

为啥我从N找P的匹配就WA,从P找N的匹配就AC???

Posted by Dario67 at 2011-04-14 21:11:44 on Problem 1469
如下:
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:
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