#P1446F. Line Distance
Line Distance
No submission language available for this problem.
Description
You are given an integer and distinct points with integer coordinates on the Euclidean plane, the -th point has coordinates .
Consider a list of all the pairs of points (). For every such pair, write out the distance from the line through these two points to the origin .
Your goal is to calculate the -th smallest number among these distances.
The first line contains two integers , (, ).
The -th of the next lines contains two integers and () — the coordinates of the -th point. It is guaranteed that all given points are pairwise distinct.
You should output one number — the -th smallest distance from the origin. Your answer is considered correct if its absolute or relative error does not exceed .
Formally, let your answer be , and the jury's answer be . Your answer is accepted if and only if .
Input
The first line contains two integers , (, ).
The -th of the next lines contains two integers and () — the coordinates of the -th point. It is guaranteed that all given points are pairwise distinct.
Output
You should output one number — the -th smallest distance from the origin. Your answer is considered correct if its absolute or relative error does not exceed .
Formally, let your answer be , and the jury's answer be . Your answer is accepted if and only if .
Samples
Note
There are pairs of points:
- Line : distance from the origin
- Line : distance from the origin
- Line : distance from the origin
- Line : distance from the origin
- Line : distance from the origin
- Line : distance from the origin