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:题目算法In Reply To:题目算法 Posted by:407811696 at 2011-08-19 14:13:10 > 并查集处理关系,然后开始dp,看看每个关系组都取一个,可不可以得到一个p1的数量,如果组合方法超过1,表示不确定,如果等于1,就输出这些组合,但是题目存在无法组合到p1的情况,所以组合数等于0也输出no 还有p1 = p2输出no Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator