maximum shortest distance

Time Limit: 1000ms
Memory Limit: 32768KB
This problem will be judged on HDU. Original ID: 3585
64-bit integer IO format: %I64d      Java class name: Main

Description

There are n points in the plane. Your task is to pick k points (k>=2), and make the closest points in these k points as far as possible.

Input

For each case, the first line contains two integers n and k. The following n lines represent n points. Each contains two integers x and y. 2<=n<=50, 2<=k<=n, 0<=x,y<10000.

Output

For each case, output a line contains a real number with precision up to two decimal places.

Sample Input

3 2
0 0
10 0
0 20

Sample Output

22.36

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .