题目1004:Median

时间:2016-10-09 04:03:00
【文件属性】:

文件名称:题目1004:Median

文件大小:483B

文件格式:CPP

更新时间:2016-10-09 04:03:00

题目1004

Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17} is 15. The median of two sequences is defined to be the median of the non-decreasing sequence which contains all the elements of both sequences. For example, the median of S1 and S2 is 13. Given two increasing sequences of integers, you are asked to find their median.


网友评论