| ||||||||||
| 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:不是那个最快的人来回跑吗???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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator