
Объяснение:
h,w = int(input().split())
c,p = int(input().split())
s = []
roadm = []
parks = []
cp = []
for i in range(1, h+1):
for j in range(1, w+1):
s.append([i,j])
for k in s:
if k[0]==1 or k[1]==1:
roadm.append(s.pop(k))
for t in s:
if t[0] == 2 or t[1] == 2:
cp.append(s.pop(t))
for y in s:
if y[0] == (f[0]+1 for f in cp) and y[1] == (f[1]+1 for f in cp) and y[0] == (f[0]-1 for f in cp) and y[1] == (f[1]-1 for f in cp):
parks.append(s.pop(y))
a = []
b = []
for o in s:
a.append(o[0])
b.append(o[1])
print(min(a))
print(min(b))
1) name = input()
print("Здравствуй,", name + "!")
2) chislo = input()
if "." in chislo:
print("Это число не целое")
else:
print(“Число целое”)
3) one = int(input())
two = int(input())
three = int(input())
four = int(input())
print(min(one, two, three, four))
print(max(one, two, three, four))
4) chislo = int(input())
if chislo % 2 == 0:
if chislo > 50:
print("Категория А”)
else:
print("Категория B”)
else:
if chislo > 50:
print("Категория C”)
else:
print("Категория D”)
5) c1 = int(input())
c2 = int(input())
z = input()
if z == "+":
print(c1 + c2)
if z == "-":
print(c1 - c2)
if z == "*":
print(c1 * c2)
if z == "/":
print(c1 / c2)