mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-29 14:53:42 +03:00
13 lines
284 B
Python
13 lines
284 B
Python
|
with open("17.txt") as f:
|
||
|
data = list(map(int, f.read().split()))
|
||
|
|
||
|
n = min([x for x in data if x > 0 and x % 19 == 0])
|
||
|
r = []
|
||
|
for i in range(1, len(data)):
|
||
|
n1 = data[i - 1]
|
||
|
n2 = data[i]
|
||
|
if n1 + n2 < n:
|
||
|
r.append(abs(n1 + n2))
|
||
|
|
||
|
print(len(r), max(r))
|