import java.util.*;//气死我了,第一注意引包,第二TreeSet可以排序,第三遍历set集合可以用增项的for(),或者迭代器, // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); //获取个数 TreeSet<Integer> set = new TreeSet();//set可以自己带一个比较函数new Comparator<Integ...