<doocs>1471.The k Strongest Values in an Array_1.py
def getStrongest( arr: List[int], k: int) -> List[int]:
    arr.sort()
    m = arr[(len(arr) - 1) >> 1]
    arr.sort(key=lambda x: (-abs(x - m), -x))
    return arr[:k]
def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> List [ int ] :
    var_0.sort ( )
    var_7 = var_0 [ ( len ( var_0 ) - 1 ) >> 1 ]
    var_0.sort ( var_8 = lambda var_9 : ( - abs ( var_9 - var_7 ) , - var_9 ) )
    return var_0 [ : var_3 ]
