<doocs>0754.Reach a Number_1.py
def reachNumber( target: int) -> int:
    target = abs(target)
    k = s = 0
    while 1:
        if s >= target and (s - target) % 2 == 0:
            break
        k += 1
        s += k
    return k
def sample_funcname ( var_0 : int ) -> int :
    var_0 = abs ( var_0 )
    var_5 = var_3 = 0
    while 1 :
        if var_3 >= var_0 and ( var_3 - var_0 ) % 2 == 0 :
            break
        var_5 += 1
        var_3 += var_5
    return var_5
