📄 4035678_ole.java
字号:
import java.util.*;
import java.io.*;
public class Main {
private BufferedReader br;
private HashMap <String, String> dictionary;
public static void main(String[] args) {
try {
new Main().run();
} catch (Exception e) {
e.printStackTrace();
}
}
private void run() throws Exception {
br = new BufferedReader(new InputStreamReader(System.in));
dictionary = new HashMap <String, String> ();
String line;
while (true) {
line = br.readLine();
if (line.length() == 0) {
break;
}
int index = line.indexOf(' ');
dictionary.put(line.substring(index + 1), line.substring(0, index));
}
String key;
while (true) {
key = br.readLine();
String value = "";
try {
value = dictionary.get(key);
} catch (Exception e) {
System.exit(0);
}
System.out.println(value == null ? "eh" : value);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -