luogu#P1756. [NOI2009] 描边
[NOI2009] 描边
Background
Description
Xiao Z is an outstanding mathematician. Being clever, he especially enjoys studying small mathematical problems.
One day, he chose points on a sheet of paper and connected every pair with a pencil, forming segments. Since the pencil is very thin, we can consider these segments to have width .
Looking at these segments, Xiao Z fell into deep thought. He believed some of these segments were more important and needed emphasis. So he took out a brush and restroked them. When the brush touches the paper, it forms a disk of radius . While stroking a segment, the center of the brush (i.e., the center of the disk) starts from one endpoint and moves along the segment to the other endpoint. The figure below shows the result of emphasizing one segment in a configuration with points.

Now, Xiao Z wants to know the total area on the paper that is emphasized after stroking. Can you help him answer this question?
Output Format
The output file path*.out contains exactly one line with one number, which is the total area emphasized after stroking.
2
1 1
1 2
1
1 2
1
0.00001 0.001 0.1 1
5.1415927
Hint
Each test point is scored independently.
This problem has scoring parameters (), which are given in the input file.
Your score will be determined by the following rules:
- If your answer differs from the standard answer by no more than , you will receive full score for that test point.
- Otherwise, if your answer differs from the standard answer by no more than , you will receive of the score for that test point.
- Otherwise, if your answer differs from the standard answer by no more than , you will receive of the score for that test point.
- Otherwise, if your answer differs from the standard answer by no more than , you will receive of the score for that test point.
- Otherwise, your score for that test point will be .
Translated by ChatGPT 5