mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-14 09:06:32 +03:00
18 lines
315 B
Python
Vendored
18 lines
315 B
Python
Vendored
def symb(x, y):
|
|
return x + y > 0
|
|
|
|
|
|
res = []
|
|
|
|
for z in range(10000):
|
|
f = True
|
|
for x in range(1000):
|
|
r = symb(x, z + 1) <= (int(not (symb(x, -7)) <= int(not (symb(x, 7)))))
|
|
if not r:
|
|
f = False
|
|
break
|
|
if f:
|
|
res.append(z)
|
|
|
|
print(max(res))
|