#P4250. [SCOI2015] 小凸想跑步
[SCOI2015] 小凸想跑步
Description
Xiao Tu (pinyin: Xiao Tu) likes running on the track at night. After finishing two laps today, he started the following game.
The track is a convex -gon whose vertices are numbered in counterclockwise order from to . Now Xiao Tu stands uniformly at random at some point inside the track, denoted as point . Connect point to all vertices to form triangles (i.e., triangles for all , with indices modulo ). If the triangle formed by , vertex , and vertex has the smallest area among these triangles, Xiao Tu considers this a correct placement.
Now Xiao Tu wants to know the probability that a single placement is correct.
Input Format
The first line contains an integer , the number of vertices of the track.
The next lines each contain two integers , the coordinates of the vertices.
The input guarantees that the vertices are given in counterclockwise order, they form a convex polygon, and no three points are collinear.
Output Format
Output a single number: the probability of a correct placement, rounded to decimal places.
5
1 8
0 7
0 0
8 0
8 8
0.6316
Hint
For of the testdata, , .
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号