TL1 = int(input("TL1: "))
TL2 = int(input("TL2: "))
BR1 = int(input("BR1: "))
BR2 = int(input("BR2: "))
P1 = int(input("P1: "))
P2 = int(input("P2: "))
if((TL1 <= P1 <= BR1 or BR1 <= P1 <= TL1) and (TL2 <= P2 <= BR2 or BR2 <= P2 <= TL2)):
print("Yes")
else:
print("No")
TL2 = int(input("TL2: "))
BR1 = int(input("BR1: "))
BR2 = int(input("BR2: "))
P1 = int(input("P1: "))
P2 = int(input("P2: "))
if((TL1 <= P1 <= BR1 or BR1 <= P1 <= TL1) and (TL2 <= P2 <= BR2 or BR2 <= P2 <= TL2)):
print("Yes")
else:
print("No")
Соседние файлы в папке Пр3