2.Заданы размеры А, В прямоугольного отверстия и размеры X, Y, Z кирпича. Опре-делить, пройдет ли кирпич через отверстие.
такой себе говнокод
Код:
a=int(input())
b=int(input())
x=int(input())
y=int(input())
z=int(input())
#find the maximum side of the hole
if a>=b:
a1=a
b1=b
else:
b1=a
a1=b
#find the maximum side of the brick
if x >= y and x >= z:
z1=y
z2=z
elif y >= x and y>= z:
z1=x
z2=z
else:
z1=x
z2=y
#find the minimum side of the brick
if z1>=z2:
pass
else:
k=z2
z2=z1
z1=k
#print result
if a1>=z1 and b1>=z2:
print('it will go')
else:
print('no way')