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