This page is still under construction.

Parts of this page are still being built. What you see may change.

The Goat

Time limit1sMemory limit128 MB

Summary
Compute the expected area eaten when a goat is tied for k days to uniformly random stakes of length l, where overlaps depend on disk-pair geometry.
Level

Medium7 of 10

Topics
Probability, Geometry, Math, Combinatorics
Solved
No attempts yet

Problem

Farmer Byteman drove nn stakes into the ground of an infinite pasture. Over the next kk days, each morning the farmer takes his goat out to the pasture and ties it, with a cord of length ll, to a stake chosen uniformly at random among the nn stakes. During that day the goat eats all the grass within its reach. To the goat's dismay, the grass does not grow back. It can also happen that the absent-minded farmer ties the goat to the same stake on more than one day.

What is the expected value of the area of the pasture whose grass has been eaten after kk days?

Input

The first line contains three integers nn, kk, and ll (1≤n,k,l≤1 0001 \le n, k, l \le 1\,000), denoting the number of stakes, the number of days, and the length of the cord, respectively. Each of the next nn lines contains the coordinates of one stake as a pair of integers xix_i, yiy_i (−1 000≤xi,yi≤1 000-1\,000 \le x_i, y_i \le 1\,000). No two stakes are placed at the same location.

Output

Print a single real number: the expected area of the pasture whose grass the goat eats over the kk days, rounded to exactly six digits after the decimal point.

Hint

Consider two stakes over two days. If the goat is tied to the same stake on both days, the eaten area equals π\pi; if it is tied to two different stakes, the area equals 4π3+32\dfrac{4\pi}{3} + \dfrac{\sqrt{3}}{2}. Averaging the four equally likely outcomes gives 7π6+34≈4.098204\dfrac{7\pi}{6} + \dfrac{\sqrt{3}}{4} \approx 4.098204.

Examples3

  1. Example 1

    Input
    2 2 1
    0 0
    1 0
    
    Expected output
    4.098204
    
  2. Example 2

    Input
    1 5 3
    0 0
    
    Expected output
    28.274334
    
  3. Example 3

    Input
    2 1 1
    0 0
    1 0
    
    Expected output
    3.141593