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

[백준/파이썬] 31822번 재수강

by 현장 2024. 5. 15.

-Code

subject = input()[:5]
res = 0

for _ in range(int(input())):
    retake = input()[:5]

    if subject == retake:
        res += 1

print(res)