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:TLE help;

Posted by hduOZ at 2007-07-09 15:17:52 on Problem 3244
In Reply To:Re:TLE help; Posted by:beiyouyu at 2007-07-09 14:14:16
呵呵谢了,我AC了
我改成了这个
		for(j=1;j<n;j++)
			sum=sum+j*(x[j]-x[i-j]);
		for(j=1;j<n;j++)
			sum=sum+j*(y[j]-y[i-j]);
		for(j=1;j<n;j++)
			sum=sum+j*(z[j]-z[i-j]);
就过了

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