промежутое

This commit is contained in:
2025-12-05 11:48:13 +05:00
parent 30647281a5
commit dcb80ef973
48 changed files with 1190 additions and 0 deletions

15
programm1/data_types5.py Normal file
View File

@@ -0,0 +1,15 @@
try:
a, b, m, n = map(float, input().split())
except Exception:
print("Ошибка: введите 4 числа через пробел")
raise SystemExit(1)
if m > n:
m, n = n, m
if a == 0:
print("YES" if b == 0 else "NO")
else:
x = -b / a
print("YES" if m <= x <= n else "NO")