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 |
想清楚了,真爽!y的位置必然为中位数。 然后转化为SIGMA{x[i]-(st+i)}的最小值,x[i]递增 先将x[i]-=i,然后再次排序找到x的中位数,就可以得到结果了。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator