mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-24 12:33:45 +03:00
14 lines
257 B
Python
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)
|