#include<cstdio> #include<math.h> using namespace std; int main() { int tc; scanf("%d",&tc); while (tc--) { double x,y,r,dis; scanf("%lf%lf%lf",&x,&y,&r); dis=sqrt(x*x+y*y); printf("%.2lf %.2lf\n",r-dis,r+dis); } return 0; }
Sunday, June 26, 2016
Unknown
Studying at Shahjalal University of Science and Technology, Sylhet.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment