12704

#include <iostream>

#include <math.h>
#include <stdio.h>

using namespace std;

int main()
{
int t,x,y,r;

cin>>t;

while(t--)
{
cin>>x>>y>>r;

double l=sqrt((double)(x*x+y*y));
if(l<0)
l*=-1;

double a=r-l;
if(a<0)
a*=-1;

double b=r+l;
if(b<0)
b*=-1;
printf("%.2lf %.2lf\n",a,b);

}

return 0;
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *