For Learners
Limits: 2 sec., 256 MiB
Given three distinct points in the space, determine whether one is equidistant from the other two.
Input
The first line contains one integer \(T\) – the number of tests.
Each test consists of three lines, each with coordinates of a point in the form \((x,y,z)\).
Output
For each test case, print Yes
if there is a point
equidistant from the other two, No
otherwise.
Constraints
\(1 \le T \le 10^{5}\),
\(-10^{5} \le x_{i},y_{i},z_{i} \le 10^{5}\).
Samples
Input (stdin) | Output (stdout) |
---|---|
3 13 0 0 0 13 0 0 0 13 0 0 0 1 1 1 3 3 3 7714 -9639 -7057 -7773 6981 -2398 -5561 9209 -4546 | Yes No Yes |
Source: Open LNU Programming Contest 2021
Submit a solution
Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
---|
Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
---|