4.9w+
社区成员
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();
}