We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
x = []
y = []
n = int(input())
for i in range(n):
xy = input().split()
x.append(xy[0])
y.append(xy[1])
print ("YES" if (len(set(x)) == 1 or len(set(y)) == 1 ) else "NO")
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Points On a Line
You are viewing a single comment's thread. Return to all comments →