def max_tau_dist(K):
    """Return the maximum unnormalised distance of K rankings. In other words, the maximum number of swaps performed by the bubble sort algorithm to reverse a list of rankings"""
    
    return (K * (K - 1)/2 )