1108A Two distinct points codeforces solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int t,l1,r1,l2,r2;
cin>>t;
while(t--)
{
cin>>l1>>r1>>l2>>r2;
if(l1!=l2)cout<<l1<<" "<<l2<<endl;
else cout<<l1<<" "<<r2<<endl;
}
return 0;
}
0 Comments