CF-2095G•Codeforces

Definitely a Geometry Problem

*specialgeometry

Megumin is a wizard who can cast powerful magic spells that affect large areas. She is obsessed with the extremely devastating Explosion spell that can destroy everything around its target.

There are currently n slimes in the wild. Each slime's location can be described in 2D Cartesian coordinates. Megumin wishes to kill at least k slimes so she can earn more experience points to level up her Explosion. To do that, she can choose any circle on the plane and cast an Explosion spell which kills every slime inside or on the border of the circle.

However, the Explosion magic requires a large amount of mana to cast, and Megumin can only use it once per day. The amount of mana used is equal to the area inside the circle she chooses. What is the minimum amount of mana she needs to spend to kill k slimes with a single Explosion?

Input

The first line contains two integers n and k (1≤k≤n≤105) — the number of slimes and how many slimes Megumin needs to defeat.

Each of the next n lines contains two integers x and y (−109≤x,y≤109), denoting the coordinates (x,y) of a slime's location. It is guaranteed that all locations are distinct and that no three slimes lie on the same circle.

Output

Print one real number — the answer.

Your answer is considered correct if its absolute or relative error does not exceed 10−6. Formally, let your answer be a, and the jury's answer be b. Your answer is accepted if and only if |a−b|max(1,|b|)≤10−6.

Note

In the first example, Megumin can hit the slime with a circle centered at (0,0) with radius 0.

In the second example, Megumin can hit the first and last slimes with a circle centered at (1,0) with radius 1.

Sample 1
Input
1 1
0 0
Output
0.000000000000000
Sample 2
Input
3 2
0 0
100 0
2 0
Output
3.141592653589793

Discussions & Comments

Share your approach or ask questions about this problem (0)

You must be logged in to comment or start a discussion on this problem.

Log In

No comments yet. Be the first to comment!

Actions

Open on Codeforces

About Platform

CO
Codeforces
External Judge

Problem Discussions

0

Have questions or want to share your solution approach? Join the discussion.

View / write comments