# 9(21) РТ

 avatar
user_8840555
python
2 years ago
413 B
5
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)) == 4:
        p = []
        np = []
        for x in a:
            if a.count(x) == 1:
                np.append(x)
            else:
                p.append(x)
        if sum(p) > sum(np):
            c += 1
print(c)
# 9(21) РТ
Editor is loading...