public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] d = new int[100001]; int res = 0; for (int i = 0; i < n; i++) { int a = sc.nextInt(), b = sc.nextInt(); for (int j = a; j <= b; j++) { d[j]++; } } for (int i = 0; i < 100001; i++) { res = Math.max(res, d[i]); } System.out.println(res); } 这个怎么不行呀??