CF1C--Ancient Berland Circus翻译

原题链接--https://acs.jxnu.edu.cn/problem/CF1Chttps://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
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值