Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

刚过题...留爪...顺便留一点思路...

Posted by fish47 at 2010-07-17 20:21:14 on Problem 1094
1.这道题毫无疑问是拓扑排序+回路检测,先检测后排序
2.当发现存在回路或得出序列时立刻输出,此test case内的后续数据不改变结果
3.有可能在最后一行关系得出矛盾

或者有更好的想法...也希望大家贴出来吧...

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator