@@ -0,0 +1,621 @@
+/*%0A * Key point: Greedy%0A *%0A * Reference: http://blog.csdn.net/havenoidea/article/details/11848921%0A */%0A%0Apublic class Solution %7B%0A    public String intToRoman(int num) %7B%0A        String symbol%5B%5D=%7B%22M%22,%22CM%22,%22D%22,%22CD%22,%22C%22,%22XC%22,%22L%22,%22XL%22,%22X%22,%22IX%22,%22V%22,%22IV%22,%22I%22%7D;    %0A        int value%5B%5D =   %7B1000,900,500,400, 100, 90,  50, 40,  10, 9,   5,  4,   1%7D;%0A        %0A        StringBuilder sb = new StringBuilder();%0A        %0A        for(int i = 0; num != 0;i++)%7B%0A            while(num %3E= value%5Bi%5D)%7B%0A                num -= value%5Bi%5D;%0A                sb.append(symbol%5Bi%5D);%0A            %7D%0A        %7D%0A        %0A        return sb.toString();%0A    %7D%0A%7D

Integer to Roman