aboutsummaryrefslogtreecommitdiff
path: root/codechef/Rectangle/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'codechef/Rectangle/main.cpp')
-rw-r--r--codechef/Rectangle/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/codechef/Rectangle/main.cpp b/codechef/Rectangle/main.cpp
new file mode 100644
index 0000000..a032542
--- /dev/null
+++ b/codechef/Rectangle/main.cpp
@@ -0,0 +1,15 @@
+#include<bits/stdc++.h>
+
+using namespace std;
+
+int main () {
+ ios_base::sync_with_stdio(false);
+ cin.tie(NULL);
+ int tt;
+ cin >> tt;
+ while(tt--){
+ int a, b, c, d;
+ cin >> a >> b >> c >> d;
+ cout << ((a ^ b ^ c ^ d) == 0 ? "YES" : "NO") << endl;
+ }
+}