백준 16018번: Occupy parking #Python

ColorlessDia·2024년 5월 7일

algorithm/baekjoon

목록 보기
169/807
N = int(input())

yesterday_parking_lot = input()
today_parking_lot = input()

count = 0

for yesterday, today in zip(yesterday_parking_lot, today_parking_lot):
    if yesterday == today == 'C':
        count += 1

print(count)

0개의 댓글