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 |
Re:是贪心啊,每次记录当前最便宜的,下次加上s后再和下次的c比一下,用小的那个In Reply To:是贪心啊,每次记录当前最便宜的,下次加上s后再和下次的c比一下,用小的那个 Posted by:orbby at 2011-06-03 20:16:12 顶,这样做无懈可击,而且是O(n) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator