Roman to Integer

Easy

📝 Description

Convert a Roman numeral to an integer

Input Format

Roman numeral string

Output Format

Converted integer

Constraints

1 ≤ s.length ≤ 15

🔍 Sample Input

"LVIII"
            

✅ Sample Output

58
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run