1)
lst = []
s = 0
for i in range(6):
a = input().split()
print(*a)
s += sum(a)
print(s)
2)
n, m = int(input()), int(input())
lst = [[i for i in range(n)] for j in range(m)]
for i in lst:
for j in i:
if j % 2 == 0:
s += j
Объяснение:
На Python
1)
lst = []
s = 0
for i in range(6):
a = input().split()
print(*a)
s += sum(a)
print(s)
2)
n, m = int(input()), int(input())
lst = [[i for i in range(n)] for j in range(m)]
s = 0
for i in lst:
for j in i:
if j % 2 == 0:
s += j
print(s)
Объяснение:
На Python