Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define fastread()(ios_base::sync_with_stdio(false),cin.tie(NULL))
- #define ll long long
- int main()
- {
- fastread();
- int t;
- cin>>t;
- while(t--)
- {
- int a,b,c,d,low,high;
- cin>>a>>b>>c>>d;
- low=a+1;
- high= d-1;
- if (low == high)
- {
- low=a;
- high=d;
- }
- printf("%d %d\n",low,high);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment