[baekjoon]python #14425 ๋ฌธ์์ด ์งํฉ
https://www.acmicpc.net/problem/14425
import sys
input = sys.stdin.readline
N,M = map(int,input().split(' '))
S = [input()for _ in range(N)]
arr = [input()for _ in range(M)]
answer = 0
for a in arr:
if a in S:
answer+=1
print(answer)
'Problem Solving > BAEKJOON' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[baekjoon]python #7785 ํ์ฌ์ ์๋ ์ฌ๋ (0) | 2023.07.16 |
---|---|
[baekjoon]python #10815 ์ซ์ ์นด๋ (0) | 2023.07.16 |
[baekjoon]python #5014 ์คํํธ ๋งํฌ (0) | 2023.01.26 |
[baekjoon]python #1697 ์จ๋ฐ๊ผญ์ง (0) | 2023.01.25 |
[baekjoon]python #2178 ๋ฏธ๋กํ์ (0) | 2023.01.25 |
๋๊ธ