@@ -0,0 +1,792 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        while (true) %7B%0A%0A            int n = sc.nextInt();%0A%0A            if (n == 0) %7B%0A                break;%0A            %7D%0A%0A            int numIceCreams%5B%5D = new int %5B10%5D;%0A%0A            for (int i = 0; i %3C n; i++) %7B%0A                numIceCreams%5Bsc.nextInt()%5D++;%0A            %7D%0A%0A            for (int i = 0; i %3C 10; i++) %7B%0A%0A                if (numIceCreams%5Bi%5D == 0) %7B%0A                    System.out.println(%22-%22);%0A                    continue;%0A                %7D%0A%0A                for (int j = 0; j %3C numIceCreams%5Bi%5D; j++) %7B%0A                    System.out.print(%22*%22);%0A                %7D%0A%0A                System.out.println();%0A%0A            %7D%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0219