https://www.acmicpc.net/problem/1316
BOJ 1316 - 그룹 단어 체커
작성언어: Python3
n = int(input())
numOfGroupWord = 0
for i in range(0, n):
isGroupWord = True
word = input()
for c in word:
if c * word.count(c) not in word:
isGroupWord = False
if isGroupWord:
numOfGroupWord += 1
print(numOfGroupWord)
pc 환경에서 코드를 보는 것을 권장합니다.
'알고리즘 문제 풀기 > BOJ' 카테고리의 다른 글
BOJ 2292 - 벌집 (0) | 2019.08.08 |
---|---|
BOJ 1712 - 손익분기점 (0) | 2019.08.08 |
BOJ 2941 - 크로아티아 알파벳 (0) | 2019.08.07 |
BOJ 5622 - 다이얼 (0) | 2019.08.05 |
BOJ 2908 - 상수 (0) | 2019.08.05 |