Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- left = None
- right = None
- top = None
- bottom = None
- n = int(input())
- points = []
- for i in range(n):
- x, y = map(int, input().split())
- if -abs(x) < y < abs(y):
- points.append((x, y))
- if left is None or x < left[0]:
- left = (x, y)
- if right is None or x > right[0]:
- right = (x, y)
- if top is None or y > top[1]:
- top = (x, y)
- if bottom is None or y < bottom[1]:
- bottom = (x, y)
- for elem in points:
- print(elem)
- print(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement