From e0e4b269b96fbb34d8f70195e644dae674b89311 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Sat, 12 Jul 2025 22:29:08 +0900 Subject: [PATCH] 20250712-2 baekjoon --- code_study/Baekjoon/java/_17219.java | 22 ++++++++++++++++++++++ code_study/Baekjoon/ts/17219.ts | 11 +++++++++++ 2 files changed, 33 insertions(+) create mode 100644 code_study/Baekjoon/java/_17219.java create mode 100644 code_study/Baekjoon/ts/17219.ts 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