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

简单的贪心

Posted by Gin_dl at 2008-04-24 14:37:23 on Problem 3544
贪心算法,就是根据某个数学不等式,具体名字忘记了,内容是逆序积的和<=乱序的<=顺序的
不过这个要考虑计算实际价格的时候中间计算结果超过32bit整数的情况,不然就得郁闷的wa好几次。。

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