промежутое
This commit is contained in:
15
programm1/data_types5.py
Normal file
15
programm1/data_types5.py
Normal 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")
|
||||
Reference in New Issue
Block a user