add to gothib
This commit is contained in:
commit
523f45b46a
28 changed files with 419 additions and 0 deletions
17
art_frame.py
Normal file
17
art_frame.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
points = int(input())
|
||||
max_x = 0
|
||||
max_y = 0
|
||||
min_x = 100
|
||||
min_y = 100
|
||||
|
||||
for i in range(points):
|
||||
x, y = tuple(map(int, input().split(",")))
|
||||
|
||||
max_x = max(max_x, x)
|
||||
max_y = max(max_y, y)
|
||||
|
||||
min_y = min(min_y, y)
|
||||
min_x = min(min_x, x)
|
||||
|
||||
print(f"{min_x-1},{min_y-1}")
|
||||
print(f"{max_x+1},{max_y+1}")
|
Loading…
Add table
Add a link
Reference in a new issue