Farz0l1x

Untitled

Jun 14th, 2023
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. file = open('19A.txt')
  2. n = int(file.readline())
  3. x = []
  4. y = []
  5. for i in range(n):
  6. x_0, y_0 = map(int, file.readline().split())
  7. if y_0 == 0:
  8. x += [x_0]
  9. else:
  10. y += [abs(y_0)]
  11. x.sort()
  12. y.sort()
  13. print(0.5 * y[-1] * (x[-1] - x[0]))
Advertisement
Add Comment
Please, Sign In to add comment