1730.
Mindis
时间限制 3000 ms
内存限制 64 MB
The center coordinate of the circle C is O, the coordinate of O is (0,0) , and the radius is r.
P and Q are two points not outside the circle, and PO = QO.
You need to find a point D on the circle, which makes $PD + QD$ minimum.
Output minimum distance sum.
输入数据
输出数据
For each case output one line denotes the answer.
The answer will be checked correct if its absolute or relative error doesn't exceed $10^{-6}$.
Formally, let your answer be a, and the jury's answer be b. Your answer is considered correct if $\frac{|a-b|}{max(1,b)} \leq 10^{-6}$.
样例输入
复制
4
4
4 0
0 4
4
0 3
3 0
4
0 2
2 0
4
0 1
1 0
\n
\n
· \n
· \n
\n
· \n
· \n
\n
· \n
· \n
\n
· \n
· \n
样例输出
special judge
复制
5.6568543
5.6568543
5.8945030
6.7359174
\n
\n
\n
\n