EPS/2024/04/15-04-24/a.py

12 lines
311 B
Python
Raw Normal View History

2024-04-29 13:33:02 +02:00
def square_size(meteors, t) -> int:
posX = [m[0] + m[2]*t for m in meteors]
posY = [m[1] + m[3]*t for m in meteors]
win_size = (
(max(posX)-min(posX)) *
(max(posY)-min(posY))
)
return win_size
N = int(input())
meteors = [[int(i) for i in input().split()] for _ in range(N)]