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 |
刚过题...留爪...顺便留一点思路...1.这道题毫无疑问是拓扑排序+回路检测,先检测后排序 2.当发现存在回路或得出序列时立刻输出,此test case内的后续数据不改变结果 3.有可能在最后一行关系得出矛盾 或者有更好的想法...也希望大家贴出来吧... Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator