当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

2986:A Triangle and a Circle

Special Judge 特殊评判
题目描述

Given one triangle and one circle in the plane. Your task is to calculate the common area of these two figures.

输入解释

The input will contain several test cases. Each line of input describes a test case. Each test case consists of nine floating point numbers, x1, y1, x2, y2, x3, y3, x4, y4 and r, where (x1, y1), (x2, y2) and (x3, y3) are the three vertices of the triangle and (x4, y4) is the center of the circle and r is the radius. We guarantee the triangle and the circle are not degenerate.

输出解释

For each test case you should output one real number, which is the common area of the triangle and the circle, on a separate line. The result should be rounded to two decimal places.

输入样例
0 20 10 0 -10 0 0 0 10
输出样例
144.35

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-2986

最后修改于 2020-10-29T06:49:11+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
5000 131072