Guest User

remainder fact

a guest
Mar 30th, 2020
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. t = int(input())
  2.  
  3. li=[]
  4. for i in range(t):
  5. a=int(input())
  6. li.append(a)
  7.  
  8. a= sorted(li)[-1]
  9.  
  10. d=0
  11.  
  12. for i in range(2,a+1):
  13. c=0
  14. for k in range(1,t):
  15. if li[k]%i==li[k-1]%i:
  16. c+=1
  17. #print(c)
  18. if c==(t-1):
  19. print(i,end=" ")
RAW Paste Data