Scanner in = new Scanner(System.in);         int m = Integer.parseInt(in.nextLine());         ArrayList<Interval> input = new ArrayList<>();                  for(int i = 0; i < m; i++){             String[] errorsClassifiedByEditors = in.nextLine().split(";");             for(int j = 0; j < errorsClassifiedByEditors.length; j++){                 String[] errors = errorsClassifiedByEditors[j].split(",");                 input.add(new Interval(Integer.parseInt(errors[0]), Integer.parseInt(errors[1])));             }         }         in.close();         
点赞 评论

相关推荐

2025-12-22 16:31
已编辑
桂林电子科技大学 Python
很奥的前端仔:如果你接了offer 临时又说不去 hr确实要多做一些工作。 当然如果是接offer之前当我没说
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务