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