Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- long long int t,r,y,R;
- double a,b,c,d;
- scanf("%lld",&t);
- while(t--)
- {
- scanf("%lld%lld%lld",&r,&y,&R);
- a=(r*r)+(y*y);
- b=sqrt(a);
- c=R+b;
- d=R-b;
- printf("%.2lf %.2lf\n",d,c);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment