# 9(18) РТ

user_8840555 avatar
user_8840555
python
06/13/2023 10:19 AM
556 B
15
Indexable
f = open(r'C:\Users\SnowDrit\Downloads\9\Новый текстовый документ.txt')
c = 0
for s in f:
    a = list(map(int, s.split()))
    if len(set(a)) != 6:
        povt = []
        np = []
        for x in a:
            if a.count(x) == 1:
                np.append(x)
            else:
                np.append(x)
        if sum(np) % 2 != 0:
            c += 1
print(c)
# 9(18) РТ
Editor is loading...