Untitled

 avatar
user_8840555
python
2 years ago
266 B
5
Indexable
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)
Editor is loading...