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 semonteer at 2005-09-17 16:21:35 on Problem 1042
In Reply To:Re:当best_t[i]!=tt[i]时就要break,因为大小显然只与第一个不同的数有关. Posted by:lbp at 2005-09-17 16:09:13
> 实际上,不管best_t[i] <tt[i] 还是best_t[i] <=tt[i];紧接的break;必然要被执行;所以下面的i!=n+1必然为真,,,也就是best_t[i] <tt[i]与best_t[i] <=tt[i]在这 是等效的.......不会出现best_t[i] >=tt[i]对所有i成立的情况。。

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