| ||||||||||
| 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 | |||||||||
在纸上画了半天...In Reply To:弱问b怎么做? Posted by:Jaakques at 2008-12-07 17:48:05 d[i]表示点i的度,c[i]是i的覆盖数 对于每条边(u,v),d[u]++,d[v]++ 对于每个u,满足d[u]==1,则对他的邻接点v,c[v]++ 如果存在i使得d[i]==0,无解 如果存在i使得c[i]>1,无解 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator