<qiyuangong>012_Integer_to_Roman_2.py
def intToRoman( num: int) -> str:
    values = [1000, 900, 500, 400,
              100, 90, 50, 40,
              10, 9, 5, 4, 1]
    symbols = ["M", "CM", "D", "CD",
               "C", "XC", "L", "XL",
               "X", "IX", "V", "IV",
               "I"]
    roman = ''
    i = 0
    while num > 0:
        k = num // values[i]
        for j in range(k):
            roman += symbols[i]
            num -= values[i]
        i += 1
    return roman
def sample_funcname ( var_0 : int ) -> str :
    var_16 = [ 1000 , 900 , 500 , 400 , 100 , 90 , 50 , 40 , 10 , 9 , 5 , 4 , 1 ]
    var_30 = [ "M" , "CM" , "D" , "CD" , "C" , "XC" , "L" , "XL" , "X" , "IX" , "V" , "IV" , "I" ]
    var_32 = ''
    var_34 = 0
    while var_0 > 0 :
        var_35 = var_0 // var_16 [ var_34 ]
        for var_37 in range ( var_35 ) :
            var_32 += var_30 [ var_34 ]
            var_0 -= var_16 [ var_34 ]
        var_34 += 1
    return var_32
