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

Re:是贪心啊,每次记录当前最便宜的,下次加上s后再和下次的c比一下,用小的那个

Posted by HeadHunter at 2013-04-14 12:11:05 on Problem 2393
In Reply To:是贪心啊,每次记录当前最便宜的,下次加上s后再和下次的c比一下,用小的那个 Posted by:orbby at 2011-06-03 20:16:12
顶,这样做无懈可击,而且是O(n)

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