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 help;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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator