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

建议使用的浏览器:

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

5206:Four Inages Strategy

题目描述
Young F found a secret record which inherited from ancient times in ancestral home by accident, which named "Four Inages Strategy". He couldn't restrain inner exciting, open the record, and read it carefully. " Place four magic stones at four points as array element in space, if four magic stones form a square, then strategy activates, destroying enemy around". Young F traveled to all corners of the country, and have collected four magic stones finally. He placed four magic stones at four points, but didn't know whether strategy could active successfully. So, could you help him?
输入解释
Multiple test cases, the first line contains an integer $T$(no more than $10000$), indicating the number of cases. Each test case contains twelve integers $x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4,\left|x \right|,\left|y \right|, \left|z \right| \leq 100000$,representing coordinate of four points. Any pair of points are distinct.
输出解释
For each case, the output should occupies exactly one line. The output format is Case #$x$: $ans$, here $x$ is the data number begins at $1$, if your answer is yes,$ans$ is Yes, otherwise $ans$ is No.
输入样例
2
0 0 0 0 1 0 1 0 0 1 1 0
1 1 1 2 2 2 3 3 3 4 4 4
输出样例
Case #1: Yes
Case #2: No
来自杭电HDUOJ的附加信息
Recommend hujie

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

源链接: HDU-5206

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

共提交 0

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