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:我靠!我也TLE了In Reply To:我靠!我也TLE了 Posted by:ykt at 2005-09-14 21:16:12 空间换时间才是王道啊 加了一个判断, 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了 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator