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 |
讨论一下贪心从后往前和从前往后的问题...前面有同学说从后往前和从前往后结果不一样而且在明显出错的情况下AC了...加个拓扑排序貌似就好了,让他从树叶向树根方向算...不过速度慢了不只一点点啊...而且内存基本是压边了... 大家说贪心前面加个拓扑对不对啊? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator