Skip to content

Commit 405de30

Browse files
committed
Added 1535A - Fair Playoff.cpp
1 parent 091f9c8 commit 405de30

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

1535A - Fair Playoff.cpp

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// ॐ नमः शिवाय
2+
#include<bits/stdc++.h>
3+
using namespace std;
4+
#define ll long long
5+
6+
// Code Written By: Vikash Patel
7+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
8+
9+
int main()
10+
{
11+
int t;
12+
cin>>t;
13+
while(t--)
14+
{
15+
int s[4];
16+
for(int i=0;i<4;i++)
17+
{
18+
cin>>s[i];
19+
}
20+
int m1 = max(s[0],s[1]);
21+
int m2 = max(s[2],s[3]);
22+
sort(s,s+4, greater<int>());
23+
if((s[0]==m1 && s[1]==m2) || (s[0]==m2 && s[1]==m1))
24+
cout<<"YES"<<endl;
25+
else
26+
cout<<"NO"<<endl;
27+
}
28+
return 0;
29+
}

0 commit comments

Comments
 (0)