[자바JAVA]13. Roman to Integer
문제 13. Roman to Integer
로마숫자를 아라비아숫자로 나타내는 문제이다.
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
For example, 2 is written as II in Roman numeral, just two one’s added together. 12 is written as XII, which is simply X + II. The number 27 is written as XXVII, which is XX + V + II.