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

POJ真蛋疼,HDU上AC代码到这就WA了、。、

Posted by jhljx at 2015-02-13 19:15:02 on Problem 1325
在输入时
for(int p=0;p<k;p++)
       {
           int i,x,y;
           scanf("%d%d%d",&i,&x,&y);
           G[x].pb(y);
       }
没有if(x&&y)这条语句,就过不了。。
后边二分图匹配不许考虑0,所以连不连边无所谓。。

HDU上不加if判断就能过,到这必须加上才能过。。

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