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

建议使用的浏览器:

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

4895:Paper

Special Judge 特殊评判
题目描述
Jitui and Goddess are taking the Train 38 to see Protein Tiger.

Goddess gives Jitui a paper. The paper is a convex polygon. Goddess wants to cut off some circles from the paper. These circles may overlap but will not exceed the paper.

The paper may rotate around the select vertex, when Jitui selects a vertex from the paper and hang it on the wall. Given the original coordinates, now Jitui wants to know the coordinates of every vertex when the paper is stable.
输入解释
There are several test cases, please process till EOF.

The first line contains n, m, p (1 ≤ n,m ≤ 2000, 1 ≤ p ≤ n) means number of convex polygon vertex, number of circles and the number of vertex Jitui selects.
Next n lines, each line contains two integers x, y (|x|, |y| ≤ 10000) means the coordinates of every vertex of the paper.
Next m lines, each line contains three integers x, y, r describes a circle radius is r and center is (x, y).

The convex polygon will be given in counter-clockwise.
输出解释
For each test contains n lines. Describes the coordinates of the paper which is stable. The order should be the same as origin convex polygon.
Answer will be considered as correct if their absolute error is less than 10-5.
输入样例
4 1 3
0 0
2 0
2 2
0 2
1 1 1
输出样例
2.000000 -0.828427
3.414214 0.585786
2.000000 2.000000
0.585786 0.585786
来自杭电HDUOJ的附加信息
Author Fudan University
Recommend

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-4895

最后修改于 2020-10-25T23:17:52+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
4000/2000MS(Java/Others) 65536/65536K(Java/Others)