#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
![](https://3.bp.blogspot.com/-UUotSYXXmUA/WCDie_sbBWI/AAAAAAAABSA/WS-Xy5WyXq0iSjFRNc1I8oKu3R8P3nH6gCLcB/s1600/13002438_516969285167287_6975975508327389766_o.jpg)
Unknown
Studying at Shahjalal University of Science and Technology, Sylhet.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment