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:当best_t[i]!=tt[i]时就要break,因为大小显然只与第一个不同的数有关.In Reply To:当best_t[i]!=tt[i]时就要break,因为大小显然只与第一个不同的数有关. Posted by:number at 2005-09-16 14:27:41 实际上,不管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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator