-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA. Two distinct points.cpp
More file actions
97 lines (80 loc) · 2.74 KB
/
A. Two distinct points.cpp
File metadata and controls
97 lines (80 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#include<bits/stdc++.h>
#define sf scanf
#define pf printf
#define pb push_back
#define ppb pop_back
#define MP make_pair
#define PF first
#define PS second
#define si(n) scanf("%d",&n)
#define sii(x,y) scanf("%d %d",&x,&y)
#define siii(x,y,z) scanf("%d %d %d",&x,&y,&z)
#define sl(n) scanf("%lld",&n)
#define sll(x,y) scanf("%lld %lld",&x,&y)
#define slll(x,y,z) scanf("%lld %lld %lld",&x,&y,&z)
#define FOR(i,x,y) for(int i=x;i<=y;i++)
#define RFOR(i,x,y) for(int i=x;i>=y;i--)
#define CLR(arr,val) memset(arr,val,sizeof arr);
#define vout(v,ind) for(int vind=0;vind<v.size();vind++){ cout<<v[vind]; if(vind<v.size()-1) cout<<' '; else cout<<endl;}
#define arrout(arr,i,x,y) for(int i=x;i<=y;i++){ cout<<arr[i]; if(i<y) cout<<' '; else cout<<endl;}
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
#define TCL(test,t) for(test=1;test<=t;test++)
#define READ() freopen("input.txt", "r", stdin)
#define WRITE() freopen("output.txt", "w", stdout)
#define fastIO() {ios_base::sync_with_stdio(false); cin.tie(NULL);}
#define MAXN 100005
#define MAXP 2005
#define MOD 1000000007
#define PI acos(-1)
#define FasterIO ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;
template< class T > T _abs(T n) { return (n < 0 ? -n : n); }
template< class T > T _max(T a, T b) { return (!(a < b) ? a : b); }
template< class T > T _min(T a, T b) { return (a < b ? a : b); }
template< class T > T sq(T x) { return x * x; }
typedef long long int ll;
typedef unsigned long long int ull;
typedef unsigned int ui;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<pii> vii;
typedef vector<ll> vl;
typedef vector<vl> vvl;
double EPS = 1e-9;
int INF = 1000000005;
long long INFF = 1000000000000000005LL;
class TimeTracker {
clock_t start, end;
public:
TimeTracker() {
start = clock();
}
~TimeTracker() {
end = clock();
fprintf(stderr, "%.3lf s\n", (double)(end - start) / CLOCKS_PER_SEC);
}
};
int main(){
//FaterIO
//freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
//TimeTracker a;
int t;
si(t);
while(t--){
ll l1,r1,l2,r2;
scanf("%lld %lld %lld %lld",&l1,&r1,&l2,&r2);
pf("%lld ",l1);
for(ll i=l2; i<=r2; i++){
if(i!=l1){
pf("%lld\n",i);
break;
}
}
}
return 0;
}