728x90
반응형
단순 문자열 문제이다. 8371번 Dyslexia과 비슷한 문제이다.
n = int(input())
s1, s2 = input(), input()
cnt = 0
for i in range(n):
if s1[i] == s2[i]:
cnt += 1
print(cnt)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 3040번 백설 공주와 일곱 난쟁이(python) (0) | 2021.03.25 |
---|---|
백준 알고리즘 8387번 Dyslexia(python) (0) | 2021.03.25 |
백준 알고리즘 10180번 Ship Selection(python) (0) | 2021.03.25 |
백준 알고리즘 21185번 Some Sum(python) (0) | 2021.03.24 |
백준 알고리즘 1822번 차집합(python) (0) | 2021.03.24 |