Ответы
Ответ дал:
1
Ответ:
Проверенно
Объяснение:
a = list(map(int, input()))
b = list(map(int, input()))
c = list(map(int, input()))
if sum(a) == sum(b) and sum(a) == sum(c) and a[0] + b[0] + c[0] == a[1] + b[1] + c[1] and a[0] + b[0] + c[0] == a[2] + b[2] + c[2] and a[0] + b[1] + c[2] == c[0] + b[1] + a[2]:
print('ДА')
else:
print('НЕТ')
b = list(map(int, input()))
c = list(map(int, input()))
if sum(a) == sum(b) and sum(a) == sum(c) and a[0] + a[1] + a[2] == b[0] + b[1] + b[2] and c[0] + c[1] + c[2] == b[0] + b[1] + b[2] and a[0] + b[1] + c[2] == c[0] + b[1] + a[2]:
print('ДА')
else:
print('НЕТ')
333
135
b = list(map(int, input()))
c = list(map(int, input()))
if sum(a) == sum(b) and sum(a) == sum(c) and a[0] + b[0] + c[0] == a[1] + b[1] + c[1] and a[0] + b[0] + c[0] == a[2] + b[2] + c[2] and a[0] + b[1] + c[2] == c[0] + b[1] + a[2]:
print('ДА')
else:
print('НЕТ')
Похожие вопросы
1 год назад
1 год назад
2 года назад
7 лет назад
7 лет назад
9 лет назад
333
135