Untitled

 avatar
user_8840555
python
a year ago
266 B
2
Indexable
Never
f = open(r'C:\Users\SnowDrit\Downloads\9dz\9_1.txt')
c = 0
for s in f:
    a = list(map(int,s.split()))
    if len(set(a)) == 4:
        povt = (sum(a) - sum(set(a)))
        sr_n = (sum(set(a)) - povt) / 4
        if sr_n < povt:
            c +=1
print(c)