diff options
Diffstat (limited to 'codechef/Rectangle')
| -rwxr-xr-x | codechef/Rectangle/main | bin | 0 -> 22648 bytes | |||
| -rw-r--r-- | codechef/Rectangle/main.cpp | 15 | ||||
| -rw-r--r-- | codechef/Rectangle/main_input0.txt | 4 | ||||
| -rw-r--r-- | codechef/Rectangle/main_output0.txt | 3 |
4 files changed, 22 insertions, 0 deletions
diff --git a/codechef/Rectangle/main b/codechef/Rectangle/main Binary files differnew file mode 100755 index 0000000..e52d0f8 --- /dev/null +++ b/codechef/Rectangle/main 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; + } +} diff --git a/codechef/Rectangle/main_input0.txt b/codechef/Rectangle/main_input0.txt new file mode 100644 index 0000000..3a34a60 --- /dev/null +++ b/codechef/Rectangle/main_input0.txt @@ -0,0 +1,4 @@ +3 +1 1 2 2 +3 2 2 3 +1 2 2 2 diff --git a/codechef/Rectangle/main_output0.txt b/codechef/Rectangle/main_output0.txt new file mode 100644 index 0000000..5ae1e3d --- /dev/null +++ b/codechef/Rectangle/main_output0.txt @@ -0,0 +1,3 @@ +YES +YES +NO |
