import java.util.Iterator; import java.util.Scanner; import java.util.TreeSet; public class Nums { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); TreeSet tree = new TreeSet(); for(int i = 0;i<num;i++){ tree.add(sc.nextInt()); } //获取迭代器 Iterator it = tree.iterator(); while (it.hasNext()){ System.out.println(it.next()); } } }