#P6376. [PA 2010] The Goat

[PA 2010] The Goat

Description

There are nn points on a plane. Repeat the following operation kk times: randomly choose one point, and draw a circle with radius rr centered at that point. Find the expected area of the union of all circles in the end.

Input Format

The first line contains three integers n,k,rn, k, r.

The next nn lines each contain two integers x,yx, y, representing a point.

Output Format

Output the expected area of the union. An error within 10210^{-2} is accepted.

2 2 1
0 0
1 0
4.098204131080311

Hint

Constraints

For all testdata, it is guaranteed that 1n,k1031 \le n, k \le 10^3, 1r1031 \le r \le 10^3, and x,y103|x|, |y| \le 10^3.

Translated by ChatGPT 5