#include #include #include #include #include #include #include #include #include #include using namespace std; const int NUM=20; const int RAD=1000; struct point { double x,y,val; point(){} point(double _x,double _y):x(_x),y(_y){} }p[10001],May[NUM],e1,e2; int n; double X,Y; double dis(point a,point b) { return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y)); } double judge(point t) { double len; len=1LL<<45; for(int i=0;i0.01) { for(int i=0;iMay[i].val) { May[i]=tmp; } } D*=0.9; } point ans; ans.val=0; for(int i=0;ians.val) ans=May[i]; printf("The safest point is (%.1f, %.1f).\n",ans.x,ans.y); } int main() { srand(time(0)); e2=point(0,0); int Case; scanf("%d",&Case); while(Case--) { scanf("%lf%lf%d",&X,&Y,&n); for(int i=0;i