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

建议使用的浏览器:

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

7169:Laser Alarm

题目描述
The museum in Byteland has plenty of jewels on display, secured by $n$ laser alarms. Each laser alarm can be considered as a segment in the 3D space. In this task, your job is to test the quality of the laser alarm system. You need to find a plane such that it touches the most laser alarms. Note that if the plane touches the endpoint of a segment, it should also be counted.
输入解释
The first line contains a single integer $T$ ($1 \leq T \leq 10$), the number of test cases. For each test case:

The first line contains a single integer $n$ ($1 \leq n \leq 50$), denoting the number of laser alarms.

Each of the following $n$ lines contains six integers $x_i$, $y_i$, $z_i$, $x'_i$, $y'_i$ and $z'_i$ ($1 \leq x_i,y_i,z_i,x'_i,y'_i,z'_i \leq 100$), describing a segment that connects $(x_i,y_i,z_i)$ and $(x_i',y_i',z_i')$. It is guaranteed that the two endpoints of each segment do not coincide.
输出解释
For each test case, output a single line containing an integer, denoting the maximum possible number of laser alarms that can be touched.
输入样例
1
4
1 1 1 1 1 2
1 1 10 1 1 11
1 10 1 1 10 2
10 1 1 10 1 2
输出样例
3

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

源链接: HDU-7169

最后修改于 2022-09-15T06:17:09+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
3000/3000MS(Java/Others) 524288/524288K(Java/Others)