728x90
SMALL
n = int(input())
for _ in range(n):
word = str(input())
for i in range(len(word)-1):
if word[i]!=word[i+1]:
if word[i] in word[i+1:]:
n-=1
break
print(n)
728x90
LIST
'취준시절 > 백준' 카테고리의 다른 글
[백준 7569] Python - 토마토 (0) | 2021.08.24 |
---|---|
[백준 2941] 크로아티아 알파벳 - Python (0) | 2021.08.04 |
[백준 4673] 셀프 넘버 - Python (0) | 2021.08.03 |
[백준 1715] 카드 정렬하기 - Python (0) | 2021.08.01 |
[백준 11286] 절댓값 힙 - Python (0) | 2021.08.01 |