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:Re:Re:Re:Re:Re:我靠!我也TLE了In Reply To:Re:我靠!我也TLE了 Posted by:ykt at 2005-09-14 21:24:30 空间换时间才是王道啊 加了一个判断, if(max[curPos]==0){ leftValue=getMAX(root,columnNum,curLevel); rightValue=getMAX(root,columnNum+1,curLevel); max[curPos]=((leftValue>rightValue)?leftValue:rightValue)+curValue; } return max[curPos]; 就从TLE -> 0MS了 ---------------------------------------- 这样也行???我***,我再把我的代码改下,看能不能0ms,0k Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator