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

Re:Re:Re:Re:Re:Re:我靠!我也TLE了

Posted by liuweni at 2007-07-24 11:23:24 on Problem 1163
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:
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