Ответ:
Проверенно
Объяснение:
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('НЕТ')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Проверенно
Объяснение:
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('НЕТ')
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('НЕТ')