| ||||||||||
| 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 | |||||||||
Re:baidu网上复赛的题目,大家帮忙看看怎么理解和怎么做……In Reply To:baidu网上复赛的题目,大家帮忙看看怎么理解和怎么做…… Posted by:xreborner at 2005-09-23 18:19:03 怎么可以这么长……………… 我觉得第1题第1问中,既然有条件c,那么先按无向图划分连通块 然后检验每个连通块是否满足条件b,a b可以看有没有入度为0的点就行了 a可以用一种类似等价类合并也就是并查集的算法检验可能会快些 第2问求最小树形图有标准算法 不知道理解对否 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator