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:不是那个最快的人来回跑吗???

Posted by nkzgm at 2007-09-28 20:12:30 on Problem 3404
In Reply To:不是那个最快的人来回跑吗??? Posted by:HolyChina at 2007-09-28 19:51:02

肯定不是了,比如6 5 4 1 1
至少下面一种方案比贪心算法快:
1,1  ---》
      《--  1
6,5  ---》
      《--  1
1,4  ---》
      《--  1
1,1  ---》

1+1+6+1+4+1+1

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