12 lines
311 B
Python
12 lines
311 B
Python
|
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)]
|