mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-12-01 07:13:44 +03:00
14 lines
252 B
Python
14 lines
252 B
Python
|
with open("27-B.txt") as f:
|
||
|
data = list(map(int, f.read().splitlines()))[1:]
|
||
|
|
||
|
|
||
|
c = 0
|
||
|
|
||
|
for x in range(len(data)):
|
||
|
for y in range(len(data)):
|
||
|
if x != y:
|
||
|
if x * y % 1_000_000 == 0:
|
||
|
c += 1
|
||
|
|
||
|
print(c)
|