scripts/ege/Вариант/9.py
2023-05-05 00:45:01 +03:00

14 lines
257 B
Python

with open("9.txt") as f:
data = [list(map(int, x.split())) for x in f.read().splitlines()]
c = 0
for row in data:
n = 1
for el in row:
for e in str(el):
n *= int(e)
if n > sum(row):
c += 1
print(c)