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:终于AC了,说说5点注意的地方。

Posted by BJ061053 at 2008-12-01 15:51:58 on Problem 1042
In Reply To:终于AC了,说说5点注意的地方。 Posted by:fengyu05 at 2007-03-06 08:20:02
> 1.枚举需要走过的lake个数x,路上花费的时间为t。把总时间减去t,求出剩下可钓鱼的次数。
> 2. 每次钓鱼采用贪心算法,找鱼多的lake钓。
> 3.可用的钓鱼次数可能是0或者小于0。应直接掉出该枚举情况。
> 4.注意处理每个lake的递减关系,当小于0时把它的值变为0,而不是负数。
> 5.记得每个输出结果加多一个空行。^^

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