code import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()){ //获取个数 int num = sc.nextInt(); //创建TreeSet进行去重排序 TreeSet set = new TreeSet(); //输入 for(...