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

建议使用的浏览器:

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

7122:Transform

Special Judge 特殊评判
题目描述
Given you two points $(A, B, C)$ and $(x, y, z)$ in 3D space. Let $L$ be the line cross the point $(A, B, C)$ and the original point $(0, 0, 0)$. You will get two points $P$ and $Q$ if you rotate point $(x, y, z)$ around line $L$ by $r$ degree and $-r$ degree. If the $z$ coordinate of $P$ is greater than $Q$, output $P$. Otherwise, output $Q$. We guarantee that the solution is unique.
输入解释
This problem contains multiple test cases.

The first line of the input contains an integer $T (1 \leq T \leq 50000)$, indicating the number of test cases.

Each of the following $T$ lines contains seven integers $A, B, C, x, y, z, r$.

($1 \leq A, B, C, x, y, z \leq 100, 1 \leq r < 180$).
输出解释
For each test case, output one line contains three real numbers indicates the coordinate of the answer.

Your answer will be accepted if the absolute or relative error between your answer and the standard answer is less than $10^{-6}$.
输入样例
1
1 2 3 4 5 6 7
输出样例
4.084934830 4.801379781 6.104101869

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

源链接: HDU-7122

最后修改于 2021-10-23T19:11:35+00:00 由爬虫自动更新

共提交 0

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