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

建议使用的浏览器:

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

1675:Happy Birthday!

题目描述
There are three berries on a round birthday cake. You are required to divide the cake into three identical parts such that each part contains exactly one berry. To make it easy, it is assumed that the radius of the berries is 0 and each part of the cake is a sector with 120 degrees. Any line that divides the cake should not go through any berry.
输入解释
The first line contains a single integer t (1 <= t <= 20) that indicates the number of test cases. Then follow the t cases. Each case contains exactly 7 integers r, x1, y1, x2, y2, x3 and y3. r is the radius of the cake, (xi, yi) is the coordinates of i-th berry. The center of the cake is at (0, 0) and it's confirmed that all the berries will be on the cake.
输出解释
For each case, output 'Yes' if there is a valid solution, 'No' otherwise.
输入样例
2
2 1 1 -1 1 0 -1
10 0 9 1 8 -1 8
输出样例
Yes
No

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

源链接: POJ-1675

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

共提交 0

通过率 --%
时间上限 内存上限
1000 10000