Buggy python submission (verdict: Runtime Error):
n, x = map(int, input().split())
xi = list(map(int, input().split()))

import fraction

def gcd(*numbers):
	ret = numbers[0]
	for n in numbers[1:]:
		ret = fraction.gcd(ret, n)
	return ret

xi = map(lambda y:abs(y-x), xi)
print(gcd(*xi))

Fixed submission:
n, x = map(int, input().split())
xi = list(map(int, input().split()))

def gcd(a, b):
	while b:
		a, b = b, a % b
	return a

def gcd_l(*numbers):
	ret = numbers[0]
	for n in numbers[1:]:
		ret = gcd(ret, n)
	return ret

xi = map(lambda y:abs(y-x), xi)
print(gcd_l(*xi))

Buggy python submission (verdict: Runtime Error):
n, x = map(int, input().split())
xi = list(map(int, input().split()))

import fraction

def gcd(*numbers):
	ret = numbers[0]
	for n in numbers[1:]:
		ret = fraction.gcd(ret, n)
    return ret

xi = map(lambda y:abs(y-x), xi)
print(gcd(*xi))

Fixed submission:
n, x = map(int, input().split())
xi = list(map(int, input().split()))

def gcd(a, b):
	while b:
		a, b = b, a % b
	return a

def gcd_l(*numbers):
	ret = numbers[0]
	for n in numbers[1:]:
		ret = gcd(ret, n)
	return ret

xi = map(lambda y:abs(y-x), xi)
print(gcd_l(*xi))

Buggy python submission (verdict: Runtime Error):
n, x = map(int, input().split())
xi = list(map(int, input().split()))

import fraction
import functools

def gcd(*numbers):
    return functools.reduce(fraction.gcd, numbers)

xi = map(lambda y:y-x, xi)
print(gcd(*xi))

Fixed submission:
n, x = map(int, input().split())
xi = list(map(int, input().split()))

def gcd(a, b):
	while b:
		a, b = b, a % b
	return a

def gcd_l(*numbers):
	ret = numbers[0]
	for n in numbers[1:]:
		ret = gcd(ret, n)
	return ret

xi = map(lambda y:abs(y-x), xi)
print(gcd_l(*xi))

Buggy python submission (verdict: Runtime Error):
n, x = map(int, input().split())
xi = list(map(int, input().split()))

import fraction
import reduce

def gcd(*numbers):
    return functools.reduce(fraction.gcd, numbers)

xi = map(lambda y:y-x, xi)
print(gcd(*xi))

Fixed submission:
n, x = map(int, input().split())
xi = list(map(int, input().split()))

def gcd(a, b):
	while b:
		a, b = b, a % b
	return a

def gcd_l(*numbers):
	ret = numbers[0]
	for n in numbers[1:]:
		ret = gcd(ret, n)
	return ret

xi = map(lambda y:abs(y-x), xi)
print(gcd_l(*xi))

Buggy python submission (verdict: Runtime Error):
n, x = map(int, input().split())
xi = list(map(int, input().split()))

import math
import fraction
from functools import reduce

def gcd(*numbers):
    return reduce(fraction.gcd, numbers)

xi = map(lambda y:y-x, xi)
print(gcd(*xi))

Fixed submission:
n, x = map(int, input().split())
xi = list(map(int, input().split()))

def gcd(a, b):
	while b:
		a, b = b, a % b
	return a

def gcd_l(*numbers):
	ret = numbers[0]
	for n in numbers[1:]:
		ret = gcd(ret, n)
	return ret

xi = map(lambda y:abs(y-x), xi)
print(gcd_l(*xi))

Buggy python submission (verdict: Runtime Error):
n, x = map(int, input().split())
xi = list(map(int, input().split()))

import math
from functools import reduce

def gcd(*numbers):
    return reduce(math.gcd, numbers)

xi = map(lambda y:y-x, xi)
print(gcd(*xi))

Fixed submission:
n, x = map(int, input().split())
xi = list(map(int, input().split()))

def gcd(a, b):
	while b:
		a, b = b, a % b
	return a

def gcd_l(*numbers):
	ret = numbers[0]
	for n in numbers[1:]:
		ret = gcd(ret, n)
	return ret

xi = map(lambda y:abs(y-x), xi)
print(gcd_l(*xi))