| ||||||||||
| 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 | |||||||||
POJ真蛋疼,HDU上AC代码到这就WA了、。、在输入时
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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator