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