#P3775. [CTSC2017] 投影
[CTSC2017] 投影
Output Format
For each test case in the file, output one number on a single line (its length should not exceed 30), representing the result.
Your answer will be considered correct if its relative error does not exceed compared to the reference answer.
You will receive points for a test file only if all test cases in that file are answered correctly.
2 1
0 0 0
1 1 0
0 1 0
1 0 0
-1 -1
0.70710678118655
4 2
0 0 0
0 1 1
1 0 1
1 1 0
0 0 1
0 1 0
1 0 0
1 1 1
-1 -1
0.73883404559321
Hint
- For 30% of the testdata, , , and all points have . At most one test case appears in a file.
- For another 40% of the testdata, , , and all point coordinates are independently and uniformly generated in . At most ten test cases appear in a file.
- For the remaining 30% of the testdata, , , and all point coordinates are independently and uniformly generated in . At most ten test cases appear in a file.
- For 100% of the testdata, all coordinates lie in , and the answer is at least .
Translated by ChatGPT 5
京公网安备 11011102002149号