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

[백준/파이썬] 5013번 Death Knight Hero

by 현장 2023. 4. 5.

-Code

res = 0

for _ in range(int(input())):
    s = input()

    if "CD" not in s:
        res += 1
print(res)