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:p2po2p at 2010-04-06 21:50:43 我也是用优先队列做的 我觉得直接只排序一次就贪心 有点问题 我是这样想的 若要2*sqrt(a*b)尽量小,类似一根huffmantree,数大的尽量处在深度高的地方 尽量多开方,由此进行贪心 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator