@@ -0,0 +1,778 @@
+class Solution %7B%0A    public int romanToInt(String s) %7B%0A       %0A        Map%3CCharacter,Integer%3E map = new HashMap%3C%3E();%0A        map.put('I',1);%0A        map.put('V',5);%0A        map.put('X',10);%0A        map.put('L',50);%0A        map.put('C',100);%0A        map.put('D',500);%0A        map.put('M',1000);%0A        %0A        int result = 0;%0A        char%5B%5D chars = s.toCharArray();%0A%0A        for (int i = 0; i %3C chars.length; i++)%7B%0A            if (map.containsKey(chars%5Bi%5D))%7B%0A                int value = map.get(chars%5Bi%5D);%0A                if ((i == chars.length - 1) %7C%7C map.get(chars%5Bi+1%5D) %3C= map.get(chars%5Bi%5D)) %7B%0A                    result += value;%0A                %7D else %7B%0A                    result -= value;%0A                %7D%0A            %7D%0A        %7D%0A        %0A        return result;%0A    %7D%0A%7D

add 13