Under construction

Still being built. Things may change

Five Points

Time limit2sMemory limit512 MB

Summary
Given up to 5 distinct points, each gets a half-line in a uniformly random direction. Find the probability that no two half-lines share a point.
Level

Medium7 of 10

Topics
Geometry, Probability
Solved
No attempts yet

Problem

You have placed nn distinct points on a plane. Then you will draw a half-line starting from each point in a direction chosen uniformly at random and independently from other points. Find the probability that no two half-lines will intersect.

Input

The first line of the input contains a single integer nn (2≤n≤52 \le n \le 5), denoting the number of points.

The ii-th of the following nn lines contains two integers xix_i and yiy_i (−100≤xi,yi≤100-100 \le x_i, y_i \le 100), denoting the coordinates of the ii-th point.

No two points coincide.

Output

Display the probability that no two half-lines will have a common point. Your answer must be correct to within an absolute or relative error of 10−910^{-9}.

Examples2

  1. Example 1

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

    Input
    3
    7 8
    7 7
    8 8
    
    Expected output
    0.4303385416667