scripts/ege/28.03.2023 ПРОБНИК/Faily_IN11_28032023_/27.py

14 lines
252 B
Python
Raw Normal View History

2023-05-05 00:45:01 +03:00
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)