Problem E. N-dimensional Sphere
时间限制 1000 ms
内存限制 32 MB
In an N-dimensional space, a sphere is defined as {(x1, x2 ... xN)| ∑(xi-Xi)^2 = R^2 (i=1,2,...,N) }. where (X1,X2…XN) is the center. You're given N + 1 points on an N-dimensional sphere and are asked to calculate the center of the sphere.
输入数据
输出数据
For the kth case, first output a line contains “Case k:”, then output N integers on a line indicating the center of the N-dimensional sphere
(It's guaranteed that all coordinate components of the answer are integers and there is only one solution
and |Xi| <= 10^17)
样例输入
复制
2
2
1 0
-1 0
0 1
3
2 2 3
0 2 3
1 3 3
1 2 4
样例输出
复制
Case 1:
0 0
Case 2:
1 2 3
$ Mathjax font initiator $