30:00
Given a roman numeral, convert it to an integer.
1≤s.length≤151 \leq s.\text{length} \leq 151≤s.length≤15
s contains only the characters ('I', 'V', 'X', 'L', 'C', 'D', 'M').
s
('I', 'V', 'X', 'L', 'C', 'D', 'M')
It is guaranteed that s is a valid Roman numeral in the range [1,3999][1, 3999][1,3999].
Convert roman