n = int(input())
array = []
for i in range(n):
array.append(input())
count = 0
for word in array:
words = []
for i in range(len(word)):
words.append(word[i:i+1])
for j in range(len(words) - 2):
if words[j] != words[j + 1]:
if words[j] in words[j + 2:]:
count += 1
break
print(n - count)
[파이썬] 백준 1946: 신입 사원 (그리디 알고리즘, 정렬) (0) | 2021.08.28 |
---|---|
[파이썬] 백준 1924: 2007년 (구현) (0) | 2021.08.28 |
[파이썬] 백준 1157: 단어 공부 (구현, 문자열) (0) | 2021.08.28 |
[파이썬] 백준 1152: 단어의 개수 (구현, 문자열) (0) | 2021.08.28 |
[파이썬] 백준 5585: 거스름돈 (그리디 알고리즘) (0) | 2021.08.28 |