Сложность: Лёгкая
t = open('17_17133+.txt') s = [int(n) for n in t.readlines()] d = [] h = min(s) for i in range(len(s)-1): if s[i] > 0 and s[i+1] > 0: if abs(s[i] - s[i+1]) % h == 0: d.append(s[i] + s[i+1]) print(len(d), max(d))