原题链接--https://acs.jxnu.edu.cn/problem/CF1C
https://acs.jxnu.edu.cn/problem/CF1C
Ancient Berland Circus
2000ms 65536K
描述:
Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different.
In Ancient Berland arenas in circuses were shaped as a regular (equiangular) polygon, the size and the number of angles could vary from one circus to another. In each corner of the arena there was a special pillar, and the rope strung between the pillars marked the arena edges.
Recently the scientists from Berland have discovered the remains of the ancient circus arena. They found only three pillars, the others were destroyed by the time.
You are given the coordinates of these three pillars. Find out what is the smallest area that the arena could have.
译文:如今在伯兰的所有马戏团都有着直径为13米的圆形竞技场,但是在过去并不是这样。
马戏团中的古老伯兰竞技场形状是一个规则的(等角的)多边形,大小和角度可能由于马戏团的不同而不同。在角斗场的每个角落都有一根特别的柱子,绳子将每根柱子串起来标记为角斗场的边缘。
最近科学家们在伯兰发现了古代角斗场的遗迹。他们只找到了三根柱子,其余的都在那时候被摧毁了。
你有三根柱子的坐标。找出角斗场可能有的最小区域。
输入:
The input file consists of three lines, each of them contains a pair of numbers –– coordinates of the pillar. Any coordinate doesn't exceed 1000 by absolute value, and is given with at most six digits after decimal point.
译文:输入有三行,每一行都包含一对数字——柱子的坐标。所有的坐标的绝对值都不超过1000,所给的数据包含6位小数。
输出:
Output the smallest possible area of the ancient arena. This number should be accurate to at least 6 digits after the decimal point. It's guaranteed that the number of angles in the optimal polygon is not larger than 100.
译文:输出远古角斗场可能的最小区域。数字至少精确到小数点后6位。保证所给的最优多边形的角度不大于100。
样例输入:
0.000000 0.000000 1.000000 1.000000 0.000000 1.000000
样例输出:
1.00000000