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 |
ac了,WA的注意了;sort(a,a+n); __int64 sum=0; for(i=1;i<n;i++) sum+=(n-i)*(i)*(a[i]-a[i-1]); 数组a一定要__int64或者long long, 不然WA; Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator