Description: Separation method using the first k elements in small type: the procedures read from standard input data, the first line is an integer n (1 = <n<=100000)表示元素的个数,接下来的n行中每行有一个整数。最后一行是k,就是我们要找的第k小元素。
输出:针对每一组输入,输出一个结果,每个结果占一行。
例如: 输入
5↵
123↵
12↵
1↵
3↵
4↵
4↵
输出:
12
To Search:
- [3] - Small element of the first k search algo
- [Kmin] - K for the first small element (sub-rule
- [searchK] - Sub-rule method to find the first small
- [looking] - N given numbers elements, looking for a
File list (Check if you may need any files):
求第k小元素.cpp