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 forandom at 2009-02-24 15:54:48 on Problem 1042
In Reply To:那个程序有一个不太明显的错误 Posted by:number at 2006-03-23 00:14:30
> //循环从n到1所以tt[]的总和总是大于best[],因此在fish = max_fish时,
> //第一个不相同的值tt[i] 必然大于 best[i], 
为什么呀?

tt[1,...,i-1]==best[1,...,i-1],
tt[i]<best[i],
tt[i+1,...,n]>best[i+1,...,n]
这样的情况不可能出现?

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