# 9(17) РТ
user_8840555
python
2 years ago
326 B
4
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)) == 5: povt = sum(a) - sum(set(a)) sr_n = (sum(set(a)) - povt) / 4 if sr_n <= povt * 2: c += 1 print(c) # 9(17) РТ
Editor is loading...