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

建议使用的浏览器:

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

5563:Clarke and five-pointed star

题目描述
Clarke is a patient with multiple personality disorder. One day, Clarke turned into a learner of geometric.
When he did a research with polygons, he found he has to judge if the polygon is a five-pointed star at many times. There are 5 points on a plane, he wants to know if a five-pointed star existed with 5 points given.
输入解释
The first line contains an integer $T(1 \le T \le 10)$, the number of the test cases.
For each test case, 5 lines follow. Each line contains 2 real numbers $x_i, y_i(-10^9 \le x_i, y_i \le 10^9)$, denoting the coordinate of this point.
输出解释
Two numbers are equal if and only if the difference between them is less than $10^{-4}$.
For each test case, print $Yes$ if they can compose a five-pointed star. Otherwise, print $No$. (If 5 points are the same, print $Yes$. )
输入样例
2
3.0000000 0.0000000
0.9270509 2.8531695
0.9270509 -2.8531695
-2.4270509 1.7633557
-2.4270509 -1.7633557
3.0000000 1.0000000
0.9270509 2.8531695
0.9270509 -2.8531695
-2.4270509 1.7633557
-2.4270509 -1.7633557
输出样例
Yes
No

提示


来自杭电HDUOJ的附加信息
Recommend hujie

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

源链接: HDU-5563

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

共提交 0

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