<doocs>1464.Maximum Product of Two Elements in an Array_1.py
def maxProduct( nums: List[int]) -> int:
    a = b = 0
    for v in nums:
        if v > a:
            a, b = v, a
        elif v > b:
            b = v
    return (a - 1) * (b - 1)
def sample_funcname ( var_0 : List [ int ] ) -> int :
    var_5 = var_3 = 0
    for var_6 in var_0 :
        if var_6 > var_5 :
            var_5 , var_3 = var_6 , var_5
        elif var_6 > var_3 :
            var_3 = var_6
    return ( var_5 - 1 ) * ( var_3 - 1 )
