문제 문제해결 import java.util.Map; import java.util.Scanner; import java.util.TreeMap; public class B20291 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); Map map = new TreeMap(); for(int i=0;i