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:到底是哪个中位数?

Posted by liu_cheng_ao at 2016-09-08 13:34:26 on Problem 2388
In Reply To:到底是哪个中位数? Posted by:skywalker_z at 2011-08-06 11:12:40
> 排序完之后要选哪个?
> 我写的是a[n>>1+1]结果AC了,但好像别人写的a[(n-1)/2]也对呢。
对奇数来说这不一样么

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