<doocs>0773.Sliding Puzzle_1.py
def check(seq):
    n = len(seq)
    cnt = sum(seq[i] > seq[j] for i in range(n) for j in range(i, n))
    return cnt % 2 == 0
def sample_funcname ( var_0 ) :
    var_2 = len ( var_0 )
    var_7 = sum ( var_0 [ var_4 ] > var_0 [ var_5 ] for var_4 in range ( var_2 ) for var_5 in range ( var_4 , var_2 ) )
    return var_7 % 2 == 0
