백준 20735번: Fifty Shades of Pink #Python

ColorlessDia·2026년 2월 27일

algorithm/baekjoon

목록 보기
832/836
import sys

input = sys.stdin.readline

N = int(input())

count = 0

for _ in range(N):
    line = input().rstrip().lower()

    if ('pink' in line) or ('rose' in line):
        count += 1

if count == 0:
    print('I must watch Star Wars with my daughter')
else:
    print(count)

0개의 댓글