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 |
不要排序,就好像xiaomi说的那样做就行了In Reply To:谁能把这题的算法讲的详细些? Posted by:00403022 at 2005-07-07 20:51:20 > 我是先取一节点作头结点拓扑排序,再对得到的拓扑序列倒退求各点的balance值,好像时间复杂度是O(n),可还是一直超时。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator