본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 16018번 Occupy parking

by 현장 2023. 5. 27.

-Code

n = int(input())
parking_yesterday = input()
parking_today = input()
res = 0

for i in range(n):
    if parking_yesterday[i] == parking_today[i] == 'C':
        res += 1

print(res)