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 |
没意思,有时间多看看算法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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator