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 guogaoan at 2010-04-15 13:40:52 on Problem 1862 and last updated at 2010-04-15 13:54:34
In Reply To:用优先队列!~ Posted by:p2po2p at 2010-04-06 21:50:43
我也是用优先队列做的 我觉得直接只排序一次就贪心 有点问题
我是这样想的 若要2*sqrt(a*b)尽量小,类似一根huffmantree,数大的尽量处在深度高的地方
尽量多开方,由此进行贪心

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