Five Points
Time limit2sMemory limit512 MB
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 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 (), denoting the number of points.
The -th of the following lines contains two integers and (), denoting the coordinates of the -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 .