Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- double x,y,r;
- int t,i;
- scanf("%d",&t);
- for(i=0;i<t;i++)
- {
- scanf("%lf %lf %lf",&x,&y,&r);
- if(r==x && r==y)
- printf("%lf %lf\n",0,x);
- if(r==x && r!=y)
- printf("%lf %lf\n",0,y);
- if(r==y && r!=x)
- printf("%lf %lf\n",x,0);
- if(r>x)
- {
- printf("%lf %lf\n",0,(r-y));
- }
- if(r<x)
- {
- printf("%lf %lf\n",(x-r),y);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement