Skip to content

Commit

Permalink
# Problem 6
Browse files Browse the repository at this point in the history
  • Loading branch information
harrypotter0 committed Jan 18, 2018
1 parent bcfb4c7 commit ea0e3f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CP/January Challenge 2018/rect.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ans = ['NO','YES']
for kohli in range(input()):
fi,se,th,fo = map(int,raw_input().split())
print ans[((fi^se^th^fo)==0)]
7 changes: 7 additions & 0 deletions CP/January Challenge 2018/rext1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
for x in xrange(int(raw_input())):
l = map(int, raw_input().split())
l = sorted(l)
if l[0] == l[1] and l[2] == l[3]:
print 'YES'
else:
print 'NO'

0 comments on commit ea0e3f1

Please sign in to comment.