python/24-6-26-2.py

10 lines
136 B
Python
Raw Permalink Normal View History

2024-07-22 16:59:27 +08:00
n=input()
list1=n.split()
a=int(list1[0])
b=int(list1[1])
c=int(list1[2])
d=2
while a%d!=b%d or b%d!=c%d or a%d!=c%d:
d+=1
print(d)