From b7248bc842b356d39fd9eb853ddf19655c9cf67e Mon Sep 17 00:00:00 2001 From: yongjun-0903 <472dyd@gmail.com> Date: Tue, 29 Jul 2025 18:59:17 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=98=A4=EB=8A=98=EC=9D=98=20=EC=95=8C?= =?UTF-8?q?=EA=B3=A0=EB=A6=AC=EC=A6=98]=20=EB=AC=B8=EC=9E=90=EC=97=B4=20?= =?UTF-8?q?=EC=A7=91=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...6\220\354\227\264 \354\247\221\355\225\251.py" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "yongjun-0903/\353\254\270\354\236\220\354\227\264 \354\247\221\355\225\251.py" diff --git "a/yongjun-0903/\353\254\270\354\236\220\354\227\264 \354\247\221\355\225\251.py" "b/yongjun-0903/\353\254\270\354\236\220\354\227\264 \354\247\221\355\225\251.py" new file mode 100644 index 0000000..4fea81d --- /dev/null +++ "b/yongjun-0903/\353\254\270\354\236\220\354\227\264 \354\247\221\355\225\251.py" @@ -0,0 +1,15 @@ +import sys + +n, m = map(int, sys.stdin.readline().strip().split()) + +s = set() +for _ in range(n): + s.add(str(sys.stdin.readline().strip())) + +answer = 0 +for _ in range(m): + i = str(sys.stdin.readline().strip()) + if i in s: + answer += 1 + +print(answer)