백준 25277번: Culture shock #Python

ColorlessDia·2025년 12월 17일

algorithm/baekjoon

목록 보기
759/807
N = int(input())
S = input().split()

count = 0
word_set = set(['he', 'she', 'him', 'her'])

for word in S:
    
    if word in word_set:
        count += 1

print(count)

0개의 댓글