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:谁说这是水题的,C名题来着In Reply To:谁说这是水题的,C名题来着 Posted by:shilong at 2011-09-12 11:14:31 > 如果先排序,再找中位数,那是很简单的。 > 但如果不用排序呢?怎么找到中位数? > 仔细研究一下快速排列法的partition()的程序与快速排列法的内涵, > 可以得到一个不错的方法。 还有种算法叫计数排序 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator