def gauss_sum(a, b: int):
    """Returns the sum of the Gauss numbers up to a given distance.
    >>> gauss_sum(1, 0)
    1
    >>> gauss_sum(11, 22)
    66
    """
    distance = abs(a - b)
    return distance * (distance + 1) // 2