Skip to content

Commit f3e66fc

Browse files
committed
Fair Playoff
1 parent 1fd3a2f commit f3e66fc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

1535A.cpp

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
5+
#define ll long long
6+
#define endl '\n'
7+
#define debug(n) cout<<(n)<<endl;
8+
const ll INF = 2e18 + 99;
9+
10+
int main(){
11+
ios_base::sync_with_stdio(false);
12+
cin.tie(NULL);
13+
14+
int t;
15+
cin>>t;
16+
while(t--){
17+
int a, b, c, d;
18+
cin>>a>>b>>c>>d;
19+
if(max(a, b) > min(c, d) && max(c, d) > min(a, b)){
20+
cout<<"YES"<<endl;
21+
continue;
22+
}
23+
cout<<"NO"<<endl;
24+
}
25+
26+
}

0 commit comments

Comments
 (0)