51,411
社区成员
发帖
与我相关
我的任务
分享 public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
String temp = sc.nextLine();
String[] temps = temp.split(" ");
int trains = Integer.parseInt(temps[0]);
String in = temps[1];
String out = temps[2];
}
sc.close();
}