第一题不知道为什么,用例都是对的,编译通过率0,有大佬帮忙看一下错哪里了吗? public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); List<List<Integer>> lists = new ArrayList<>(); for (int i = 0; i < 3; i++) { List<Integer> lists2 = new ArrayList<>(); for (int j = 0; j < n; j++) { int a = in.nextInt(); lists2.add(a); } Collections.sort(lists2); lists.add(lists2); }
点赞 5

牛客热帖

牛客网
牛客企业服务