import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); star[] stellaris = new star[n]; while (in.hasNextLong()) { for (int i = 0; i < n; i++) { stellaris[i] = new star(in.nextLong(), in.nextLong()); } } //自定义排序规则...