import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
class Main{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
HashMap map = new HashMap();
while(--n>=0){
String s=br.readLine();
String s2[]=s.split(" ");
map.put(s2[1],s2[0]+" "+s2[2]);
}
int m=Integer.parseInt(br.readLine());
String s3[]=br.readLine().split(" ");
int j=0;
while(--m>=0){
System.out.println(map.get(s3[j]));
j++;
}
}
}
团体程序设计天梯赛-练习集 L1-005. 考试座位号 JAVA
最新推荐文章于 2024-02-01 14:15:26 发布