diff --git a/code_study/Baekjoon/java/_17219.java b/code_study/Baekjoon/java/_17219.java new file mode 100644 index 0000000..70d90cd --- /dev/null +++ b/code_study/Baekjoon/java/_17219.java @@ -0,0 +1,22 @@ +import java.util.*; + +public class _17219 { + public static void main(String[] args){ + Scanner sc = new Scanner(System.in); + String[] num = sc.nextLine().split(" "); + int N = Integer.parseInt(num[0]); + int M = Integer.parseInt(num[1]); + + Map keychain = new HashMap<>(); + for(int i=0; i(); +input.slice(1,N+1).forEach(v => { + const [a,b] = v.split(' '); + keychain.set(a,b); +}); +input.slice(N+1).forEach(v=>{ + console.log(keychain.get(v)); +}); \ No newline at end of file