Loading...
Convert a Roman numeral string to an integer.
I=1, V=5, X=10, L=50, C=100, D=500, M=1000. Subtractive: IV=4, IX=9, XL=40, XC=90, CD=400, CM=900.
III
3
III is analyzed from left to right to determine the integer equivalent of each Roman numeral.I has a value of 1 and there are no subtractive cases in the input, we simply add the values of the three Is together: 1+1+1=3.