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 hao2 at 2009-03-29 16:54:45 on Problem 1463
前面有同学说从后往前和从前往后结果不一样而且在明显出错的情况下AC了...加个拓扑排序貌似就好了,让他从树叶向树根方向算...不过速度慢了不只一点点啊...而且内存基本是压边了...
大家说贪心前面加个拓扑对不对啊?

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