jakaria_hossain

codeforce - Two distinct points

Mar 6th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define fastread()(ios_base::sync_with_stdio(false),cin.tie(NULL))
  4. #define ll long long
  5. int main()
  6. {
  7. fastread();
  8. int t;
  9. cin>>t;
  10. while(t--)
  11. {
  12. int a,b,c,d,low,high;
  13. cin>>a>>b>>c>>d;
  14. low=a+1;
  15. high= d-1;
  16. if (low == high)
  17. {
  18. low=a;
  19. high=d;
  20. }
  21. printf("%d %d\n",low,high);
  22. }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment