카테고리 없음
[백준/Python] 1085번 직사각형에서 탈출
전한준
2022. 7. 24. 23:32
문제
코드
x,y,w,h=map(int,input().split())
list=[]
list.append(x)
list.append(y)
list.append(h-y)
list.append(w-x)
cnt=0
b=0
for i in range(4):
if b<=list[i]:
b=list[i]
cnt+=list[i]
print(min(list))