scripts/ege/Вариант/15.py

12 lines
259 B
Python
Raw Normal View History

2023-05-05 00:45:01 +03:00
rrs = [x for x in range(70, 81)]
for A in range(1, 1000):
f = True
for x in range(1, 1000):
r = x % A == 0 or (int(x in rrs) <= int(x % 18 != 0))
if not r:
f = False
break
if f:
print(A)