<qiyuangong>012_Integer_to_Roman_1.py
def intToRoman( num: int) -> str:
    roman_dim = [[1000, 'M'], [900, 'CM'], [500, 'D'], [400, 'CD'],
                [100, 'C'], [90, 'XC'], [50, 'L'], [40, 'XL'], [10, 'X'],
                [9,'IX'], [5, 'V'], [4, 'IV'], [1, 'I']]
    if num == 0:
        return ''
    roman_str = ''
    current, dim = num, 0
    while current != 0:
        while current // roman_dim[dim][0] == 0:
            dim += 1
        while current - roman_dim[dim][0] >= 0:
            current -= roman_dim[dim][0]
            roman_str += roman_dim[dim][1]
    return roman_str
def sample_funcname ( var_0 : int ) -> str :
    var_29 = [ [ 1000 , 'M' ] , [ 900 , 'CM' ] , [ 500 , 'D' ] , [ 400 , 'CD' ] , [ 100 , 'C' ] , [ 90 , 'XC' ] , [ 50 , 'L' ] , [ 40 , 'XL' ] , [ 10 , 'X' ] , [ 9 , 'IX' ] , [ 5 , 'V' ] , [ 4 , 'IV' ] , [ 1 , 'I' ] ]
    if var_0 == 0 :
        return ''
    var_32 = ''
    var_33 , var_34 = var_0 , 0
    while var_33 != 0 :
        while var_33 // var_29 [ var_34 ] [ 0 ] == 0 :
            var_34 += 1
        while var_33 - var_29 [ var_34 ] [ 0 ] >= 0 :
            var_33 -= var_29 [ var_34 ] [ 0 ]
            var_32 += var_29 [ var_34 ] [ 1 ]
    return var_32
