We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091f9c8 commit 405de30Copy full SHA for 405de30
1535A - Fair Playoff.cpp
@@ -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